Метод | Описание | |
---|---|---|
Services_Yadis_ParanoidHTTPFetcher ( $timeout ) | ||
_writeData ( $ch, $data ) | ||
_writeHeader ( $ch, $header ) | ||
get ( string $url, array $extra_headers = null ) : mixed | Fetches the specified URL using optional extra headers and returns the server's response. Uses the CURL extension. | |
reset ( ) |
public Services_Yadis_ParanoidHTTPFetcher ( $timeout ) |
public get ( string $url, array $extra_headers = null ) : mixed | ||
$url | string | The URL to be fetched. |
$extra_headers | array | An array of header strings (e.g. "Accept: text/html"). |
Результат | mixed | $result An array of ($code, $url, $headers, $body) if the URL could be fetched; null if the URL does not pass the URLHasAllowedScheme check or if the server's response is malformed. |