Class Zend_Http_Client_Adapter_Curl

Description

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

  • license: New BSD License
  • copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Http/Client/Adapter/Curl.php (line 38)


	
			
Variable Summary
 array $config
 resource|null $curl
Method Summary
 Zend_Http_Client_Adapter_Curl __construct ()
 void __destruct ()
 void close ()
 void connect (string $host, [int $port = 80], [boolean $secure = false])
 string read ()
 void setConfig ([array $config = array()])
 void write (string $method, Zend_Uri_Http $uri, [float $http_ver = '1.1'], [array $headers = array()], [string $body = ''])
Variables
array $config = array() (line 59)

Parameters array

  • access: protected
array $connected_to = array(null, null) (line 52)

What host/port are we connected to?

  • access: protected
resource|null $curl = null (line 45)

The curl session handle

  • access: protected
Methods
Constructor __construct (line 79)

Adapter constructor, currently empty. Config is set using setConfig()

  • access: public
Zend_Http_Client_Adapter_Curl __construct ()
Destructor __destruct (line 216)

Destructor: make sure curl is disconnected

  • access: public
void __destruct ()
close (line 205)

Close the connection to the server

  • access: public
void close ()
connect (line 105)

Initialize curl

  • access: public
void connect (string $host, [int $port = 80], [boolean $secure = false])
  • string $host
  • int $port
  • boolean $secure
read (line 196)

Return read response from server

  • access: public
string read ()
setConfig (line 88)

Set the configuration array for the adapter

  • access: public
void setConfig ([array $config = array()])
  • array $config
write (line 146)

Send request to the remote server

  • access: public
void write (string $method, Zend_Uri_Http $uri, [float $http_ver = '1.1'], [array $headers = array()], [string $body = ''])
  • string $method
  • Zend_Uri_Http $uri
  • float $http_ver
  • array $headers
  • string $body

Documentation generated on Thu, 18 Jan 2007 10:00:44 -0800 by phpDocumentor 1.3.1