An interface description for Zend_Http_Client_Adapter classes.

These classes are used as connectors for Zend_Http_Client, performing the tasks of connecting, writing, reading and closing connection to the server.

 Methods

Close the connection to the server

close() 

Connect to the remote server

connect(string $host, int $port, bool $secure) 

Parameters

$host

string

$port

int

$secure

bool

Read response from server

read() : string

Returns

string

Set the configuration array for the adapter

setOptions(array $options) 

Parameters

$options

array

Send request to the remote server

write(string $method, \Zend\Uri\Uri $url, string $httpVer, array $headers, string $body) : string

Parameters

$method

string

$httpVer

string

$headers

array

$body

string

Returns

stringRequest as text