Public Member Functions

Services_Yadis_ParanoidHTTPFetcher Class Reference

Inheritance diagram for Services_Yadis_ParanoidHTTPFetcher:
Services_Yadis_HTTPFetcher

Public Member Functions

 Services_Yadis_ParanoidHTTPFetcher ($timeout)
 reset ()
 _writeHeader ($ch, $header)
 _writeData ($ch, $data)
 get ($url, $extra_headers=null)

Detailed Description

Definition at line 32 of file ParanoidHTTPFetcher.php.


Member Function Documentation

_writeData ( ch,
data 
)

private

Definition at line 65 of file ParanoidHTTPFetcher.php.

_writeHeader ( ch,
header 
)

private

Definition at line 56 of file ParanoidHTTPFetcher.php.

get ( url,
extra_headers = null 
)

Fetches the specified URL using optional extra headers and returns the server's response. Uses the CURL extension.

Parameters:
string $url The URL to be fetched.
array $extra_headers An array of header strings (e.g. "Accept: text/html").
Returns:
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.

Reimplemented from Services_Yadis_HTTPFetcher.

Definition at line 83 of file ParanoidHTTPFetcher.php.

reset (  ) 

Definition at line 47 of file ParanoidHTTPFetcher.php.

Definition at line 33 of file ParanoidHTTPFetcher.php.


The documentation for this class was generated from the following file: