Zend Framework  1.12
Public Member Functions | List of all members
Zend_Http_Client_Adapter_Interface Interface Reference

Public Member Functions

 setConfig ($config=array())
 Set the configuration array for the adapter.
 
 connect ($host, $port=80, $secure=false)
 Connect to the remote server.
 
 write ($method, $url, $http_ver= '1.1', $headers=array(), $body= '')
 Send request to the remote server.
 
 read ()
 Read response from server.
 
 close ()
 Close the connection to the server.
 

Member Function Documentation

close ( )
connect (   $host,
  $port = 80,
  $secure = false 
)
read ( )
setConfig (   $config = array())

Set the configuration array for the adapter.

Parameters
array$config

Implemented in Zend_Http_Client_Adapter_Curl, Zend_Http_Client_Adapter_Socket, and Zend_Http_Client_Adapter_Test.

write (   $method,
  $url,
  $http_ver = '1.1',
  $headers = array(),
  $body = '' 
)

Send request to the remote server.

Parameters
string$method
Zend_Uri_Http$url
string$http_ver
array$headers
string$body
Returns
string Request as text

Implemented in Zend_Http_Client_Adapter_Curl, Zend_Http_Client_Adapter_Socket, Zend_Http_Client_Adapter_Test, Zend_Http_Client_Adapter_Proxy, Zend_Gdata_App_LoggingHttpClientAdapterSocket, Zend_Gdata_HttpAdapterStreamingSocket, and Zend_Gdata_HttpAdapterStreamingProxy.