\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-2008 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
{
- // members
- protected array $_config = ;
- protected array $_connected_to = ;
- protected resource|null $_curl = NULL;
- protected array $_invalidOverwritableCurlOptions = ;
- protected $_response = NULL;
- // methods
- public void __construct()
- public Zend_Http_Client_Adapter_Curl setConfig()
- public Zend_Http_Adapter_Curl setCurlOption()
- public void connect()
- public string write()
- public string read()
- public void close()
Hierarchy
Implements
Tasks
Line | Task |
---|---|
351 | Probably the pattern for multiple handshake requests is always the same, several HTTP codes in the response. Use that information? |
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
Methods
public
- __construct() — Adapter constructor
- close() — Close the connection to the server
- connect() — Initialize curl
- read() — Return read response from server
- setConfig() — Set the configuration array for the adapter
- setCurlOption() — Direct setter for cURL adapter related options.
- write() — Send request to the remote server