\Zend_Http_Client_Adapter_Curl
An adapter class for Zend_Http_Client based on the curl extension.
Curl requires libcurl. See for full requirements the PHP manual: http://php.net/curl
- Copyright: Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Http_Client_Adapter_Curl
implements
Zend_Http_Client_Adapter_Interface,Zend_Http_Client_Adapter_Stream
{
- // members
- protected array $_config = ;
- protected array $_connected_to = ;
- protected resource|null $_curl = NULL;
- protected $_invalidOverwritableCurlOptions;
- protected $_response = NULL;
- protected $out_stream;
- // methods
- public void __construct()
- public Zend_Http_Client_Adapter_Curl setConfig()
- public array getConfig()
- public Zend_Http_Adapter_Curl setCurlOption()
- public void connect()
- public string write()
- public string read()
- public void close()
- public resource getHandle()
- public Zend_Http_Client_Adapter_Socket setOutputStream()
- public int readHeader()
Hierarchy
Members
protected
- $_config
—
array
Parameters array - $_connected_to
—
array
What host/port are we connected to? - $_curl
—
resource|null
The curl session handle - $_invalidOverwritableCurlOptions
—
array
List of cURL options that should never be overwritten - $_response
—
string
Response gotten from server - $out_stream
—
resource
Stream for storing output
Methods
public
- __construct() — Adapter constructor
- close() — Close the connection to the server
- connect() — Initialize curl
- getConfig() — Retrieve the array of all configuration options
- getHandle() — Get cUrl Handle
- read() — Return read response from server
- readHeader() — Header reader function for CURL
- setConfig() — Set the configuration array for the adapter
- setCurlOption() — Direct setter for cURL adapter related options.
- setOutputStream() — Set output stream for the response
- write() — Send request to the remote server