Bitcoin and Altcoin Wallets 6.2.5

http.php

HTTP helper functions

Tags
since
6.0.0

Introduced.

author

Alexandros Georgiou info@dashed-slug.net

Table of Contents

CURLPROXY_SOCKS5_HOSTNAME  = 7
ds_http_get()  : string|null
Retrieves the response of the specified URL via HTTP GET.

Constants

CURLPROXY_SOCKS5_HOSTNAME

public mixed CURLPROXY_SOCKS5_HOSTNAME = 7

Functions

ds_http_get()

Retrieves the response of the specified URL via HTTP GET.

ds_http_get(string $url[, array<string|int, mixed> $headers = [] ]) : string|null

If the php_curl extension is installed and Tor is enabled, the request is routed through Tor.

Parameters
$url : string

The URL to retrieve.

$headers : array<string|int, mixed> = []

Array of extra HTTP request headers to pass.

Return values
string|null

The response body (payload) or null on error.

Search results