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.

category Zend
package Zend_Http
subpackage Client_Adapter
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Close the connection to the server

close() 

Connect to the remote server

connect(string $host, integer $port = 80, boolean $secure = false

Parameters

$host

string

$port

integer

$secure

boolean

Read response from server

read() : string

Returns

string

Set the configuration array for the adapter

setConfig(array $config = array()

Parameters

$config

array

Send request to the remote server

write(string $method, \Zend_Uri_Http $url, string $http_ver = '1.1', array $headers = array(), string $body = '') : string

Parameters

$method

string

$url

\Zend_Uri_Http

$http_ver

string

$headers

array

$body

string

Returns

stringRequest as text