Public Member Functions

CURLRequestProcessor Class Reference

Inheritance diagram for CURLRequestProcessor:
Collaboration diagram for CURLRequestProcessor:

List of all members.

Public Member Functions

 execute ($method, $url, $headers, $body, $config)
 _headerfunction ($ch, $str)
 get_response_body ()
 get_response_headers ()

Detailed Description

RequestProcessor using CURL.

Definition at line 7 of file curlrequestprocessor.php.


Member Function Documentation

CURLRequestProcessor::_headerfunction ( ch,
str 
)

cURL will hand each header received by the *response* to this method, so we use it to conveniently capture them for storing in case the user wants them.

Parameters:
$ch resource The cURL handle from curl_init() that is executing.
$str string The header received from the response. Should always be a single header at a time.
Returns:
int The length of the header. Used by cURL to report the header_size returned by the curl_getinfo() method.

Definition at line 166 of file curlrequestprocessor.php.

CURLRequestProcessor::execute ( method,
url,
headers,
body,
config 
)

Todo:
Possibly find a way to generate a temp file without needing the user to set write permissions on cache directory
Todo:
Fallback to using the the old way if the cache directory isn't writable
Todo:
How about trying to use the system-defined temp directory? We could at least try, even if safe_mode or something breaks it. - chrismeller

Reimplemented from RequestProcessor.

Definition at line 26 of file curlrequestprocessor.php.


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