Zend_Http_Client_AbstractZend_Http_Client_Abstract is the abstract of a Zend HTTP Client class. For the default implementation, use the Zend_Http_Client class.
Located in /library/Zend/Http/Client/Abstract.php (line 38)
| Class | Description |
|---|---|
Zend_Http_Client
|
Zend_Http_Client is an implemetation of an HTTP client in PHP. The client |
string
$enctype
= null (line 125)
Request body content type (for POST requests)
array
$headers
= array() (line 90)
Associative array of request headers
float
$http_version
= self::HTTP_VER_1 (line 97)
Request HTTP version (1.0 or 1.1)
string
$last_request
= null (line 139)
The last HTTP request sent by the client, as string
string
$method
= self::METHOD_GET (line 104)
HTTP request method
array
$paramsGet
= array() (line 111)
Associative array of GET parameters
array
$paramsPost
= array() (line 118)
Assiciative array of POST parameters
string
$raw_post_data
= null (line 132)
The raw post data to send. Could be set by setRawPostData($data, $enctype).
int
$timeout
= 10 (line 83)
Request timeout in seconds
Zend_Uri_Http
$uri
(line 76)
Request URI
string
$user_agent
= null (line 69)
The user agent string that identifies the HTTP client
static validateHeaders (line 487)
Validate an array of headers.
Accepts either an associative array of Header name => Header value format, or a numbered array where all elements are string of the format "Header: value".
Constructor __construct (line 148)
Contructor method. Will create a new HTTP client. Accepts the target URL and optionally and array of headers.
getHeader (line 311)
Get the value of a specific header
Note that if the header has more than one value, an array will be returned.
getLastRequest (line 444)
Get the last HTTP request as string
getMethod (line 241)
Get the currently-set request method (GET, POST, etc.)
getUri (line 184)
Get the URI for the next request
post (line 606)
Send a POST request
put (line 620)
Send a PUT request
request (line 454)
Send the HTTP request and return a response
resetParameters (line 350)
Clear all GET and POST parameters
Should be used to reset the request parameters if the client is used for several concurrent requests.
setCookie (line 368)
Set a cookie parameter
setEncType (line 392)
Set the encoding type for POST data
setHeader (line 266)
Set or unset a request header field
The function validates the header, and sets it. If $override is false, and the header already exists, another value will be added to the same header.
If $value is null, name is considered a string of the format "Header: value", which will be split to get the header name and value.
If the value is still null or false after trying to split $name on the ':' character (IE if $name does not contain ':'), the header will be unset.
setHeaders (line 423)
Set the next request's headers.
Receives an array of headers, which can be eithr an associative array of the form "Header" => "value" (eg. "Host" => "www.example.com") or a numbered array of string, each of the format "Header: value".
setMethod (line 221)
Set the next request's method
Validated the passed method and sets it. If we have files set for POST requests, and the new method is not POST, the files are silently dropped.
setParameterGet (line 327)
Set a GET parameter for the request. Wrapper around _setParameter
setParameterPost (line 339)
Set a POST parameter for the request. Wrapper around _setParameter
setRawData (line 408)
Set the raw (already encoded) POST data.
This function is here for two reasons:
setTimeout (line 207)
Set the client's connection timeout in seconds, 0 for none
setUri (line 160)
Set the URI for the next request
setUserAgent (line 198)
Set the user agent identification string
_connect (line 563)
Open a connection to the remote server
_prepare_body (line 555)
Prepare the request body (for POST and PUT requests)
_prepare_headers (line 547)
Prepare the request headers
_read (line 581)
Read response from remote server
_setParameter (line 517)
Set a GET or POST parameter - used by SetParameterGet and SetParameterPost
_write (line 572)
Send request to the remote server
ENC_FORMDATA
= 'multipart/form-data'
(line 62)
ENC_URLENCODED
= 'application/x-www-form-urlencoded'
(line 61)
POST data encoding methods
HTTP_VER_0
= 1.0
(line 44)
HTTP_VER_1
= 1.1
(line 43)
HTTP protocol versions
METHOD_CONNECT
= 'CONNECT'
(line 56)
METHOD_DELETE
= 'DELETE'
(line 53)
METHOD_GET
= 'GET'
(line 49)
HTTP request methods
METHOD_HEAD
= 'HEAD'
(line 52)
METHOD_OPTIONS
= 'OPTIONS'
(line 55)
METHOD_POST
= 'POST'
(line 50)
METHOD_PUT
= 'PUT'
(line 51)
METHOD_TRACE
= 'TRACE'
(line 54)
Documentation generated on Tue, 11 Jul 2006 12:24:12 -0500 by phpDocumentor 1.3.0RC6