Zend_Http_Client_Abstract is the abstract of a Zend HTTP Client class. For the default implementation, use the Zend_Http_Client class.
Located in /Http/Client/Abstract.php (line 38)
Class | Description |
---|---|
![]() |
Zend_Http_Client is an implemetation of an HTTP client in PHP. The client |
Request body content type (for POST requests)
Associative array of request headers
Request HTTP version (1.0 or 1.1)
The last HTTP request sent by the client, as string
HTTP request method
Associative array of GET parameters
Assiciative array of POST parameters
The raw post data to send. Could be set by setRawPostData($data, $enctype).
Request timeout in seconds
Request URI
The user agent string that identifies the HTTP client
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".
Contructor method. Will create a new HTTP client. Accepts the target URL and optionally and array of headers.
Get the value of a specific header
Note that if the header has more than one value, an array will be returned.
Get the last HTTP request as string
Get the currently-set request method (GET, POST, etc.)
Get the URI for the next request
Send a POST request
Send a PUT request
Send the HTTP request and return a response
Clear all GET and POST parameters
Should be used to reset the request parameters if the client is used for several concurrent requests.
Set a cookie parameter
Set the encoding type for POST data
Set 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.
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".
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.
Set a GET parameter for the request. Wrapper around _setParameter
Set a POST parameter for the request. Wrapper around _setParameter
Set the raw (already encoded) POST data.
This function is here for two reasons:
Set the client's connection timeout in seconds, 0 for none
Set the URI for the next request
Set the user agent identification string
Open a connection to the remote server
Prepare the request body (for POST and PUT requests)
Prepare the request headers
Read response from remote server
Set a GET or POST parameter - used by SetParameterGet and SetParameterPost
Send request to the remote server
POST data encoding methods
HTTP protocol versions
HTTP request methods
Documentation generated on Fri, 30 Jun 2006 11:29:39 -0500 by phpDocumentor 1.3.0RC6