Zend Framework
1.12
|
Public Member Functions | |
__construct () | |
Adapter constructor. | |
setConfig ($config=array()) | |
Set the configuration array for the adapter. | |
getConfig () | |
Retrieve the array of all configuration options. | |
setCurlOption ($option, $value) | |
Direct setter for cURL adapter related options. | |
connect ($host, $port=80, $secure=false) | |
Initialize curl. | |
write ($method, $uri, $httpVersion=1.1, $headers=array(), $body= '') | |
Send request to the remote server. | |
read () | |
Return read response from server. | |
close () | |
Close the connection to the server. | |
getHandle () | |
Get cUrl Handle. | |
setOutputStream ($stream) | |
Set output stream for the response. | |
readHeader ($curl, $header) | |
Header reader function for CURL. | |
Protected Attributes | |
$_config = array() | |
$_connected_to = array(null, null) | |
$_curl = null | |
$_invalidOverwritableCurlOptions | |
$_response = null | |
$out_stream | |
__construct | ( | ) |
Adapter constructor.
Config is set using setConfig()
Zend_Http_Client_Adapter_Exception |
close | ( | ) |
Close the connection to the server.
Implements Zend_Http_Client_Adapter_Interface.
connect | ( | $host, | |
$port = 80 , |
|||
$secure = false |
|||
) |
Initialize curl.
string | $host | |
int | $port | |
boolean | $secure |
Zend_Http_Client_Adapter_Exception | if unable to connect |
Implements Zend_Http_Client_Adapter_Interface.
getConfig | ( | ) |
Retrieve the array of all configuration options.
getHandle | ( | ) |
Get cUrl Handle.
read | ( | ) |
readHeader | ( | $curl, | |
$header | |||
) |
Header reader function for CURL.
resource | $curl | |
string | $header |
setConfig | ( | $config = array() | ) |
Set the configuration array for the adapter.
Zend_Http_Client_Adapter_Exception |
Zend_Config | array | $config |
Implements Zend_Http_Client_Adapter_Interface.
setCurlOption | ( | $option, | |
$value | |||
) |
Direct setter for cURL adapter related options.
string | int | $option | |
mixed | $value |
setOutputStream | ( | $stream | ) |
Set output stream for the response.
resource | $stream |
Implements Zend_Http_Client_Adapter_Stream.
write | ( | $method, | |
$uri, | |||
$httpVersion = 1.1 , |
|||
$headers = array() , |
|||
$body = '' |
|||
) |
Send request to the remote server.
string | $method | |
Zend_Uri_Http | $uri | |
float | $http_ver | |
array | $headers | |
string | $body |
Zend_Http_Client_Adapter_Exception | If connection fails, connected to wrong host, no PUT file defined, unsupported method, or unsupported cURL option |
Make sure POSTFIELDS is set after $curlMethod is set: http://de2.php.net/manual/en/function.curl-setopt.php#81161
Implements Zend_Http_Client_Adapter_Interface.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |