[Zend_Http] element index

Package indexes

All elements
a b c d e f g h i l m n o p r s t u v z _
_
top
Method _flattenCookiesArray
Helper function to recursivly flatten an array. Shoud be used when exporting the cookies array (or parts of it)
Method _matchDomain
Return a subset of the cookies array matching a specific domain
Method _matchPath
Return a subset of a domain-matching cookies that also match a specified path
Method __construct
Cookie object constructor
Method __construct
Construct a new CookieJar object
Method _connect
Open a connection to the remote server
Method _connect
Open a connection to the remote server
Method _getParametersRecursive
Helper method that gets a possibly multi-level parameters array (get or post) and flattens it.
Method _prepare_body
Prepare the request body (for POST and PUT requests)
Method _prepare_body
Prepare the request body (for POST and PUT requests)
Method _prepare_headers
Prepare the request headers
Method _prepare_headers
Prepare the request headers
Method _read
Read response from remote server
Method _read
Read response from remote server
Method _setParameter
Set a GET or POST parameter - used by SetParameterGet and SetParameterPost
Method _write
Send request to the remote server
Method _write
Send request to the remote server
Method __construct
Contructor method. Will create a new HTTP client. Accepts the target URL and optionally and array of headers.
Method __construct
HTTP response constructor
a
top
Method addCookie
Add a cookie to the jar. Cookie should be passed either as a Zend_Http_Cookie object or as a string - in which case an object is created from the string.
Method addCookiesFromResponse
Parse an HTTP response, adding all the cookies set in that response to the cookie jar.
Method asString
Get the cookie as a string, suitable for sending as a "Cookie" header in an HTTP request
Variable $auth
HTTP Authentication settings
Page Abstract.php
Abstract.php in Abstract.php
Method asString
Get the entire response as string
b
top
Variable $body
The HTTP response body
c
top
Variable $cookies
Array storing cookies
Page Cookie.php
Cookie.php in Cookie.php
Page Cookiejar.php
Cookiejar.php in Cookiejar.php
Variable $Cookiejar
The client's cookie jar
Page Client.php
Client.php in Client.php
Variable $code
The HTTP response code
d
top
Variable $domain
Cookie domain
Method deleteAllCookies
Remove all cookies from the jar
Method deleteCookies
Delete a cookie according to it's name and domain. If no name is specified, all cookies from this domain will be cleared out.
Method deleteExpiredCookies
Clear all cookies who's expiry time is older than $time
Method deleteSessionCookies
Clear "Session" cookies (cookies without specific expiry time)
Variable $doStrictRedirects
Whether to strictly follow RFC 2616 when redirecting
Method delete
Send a DELETE request
Method decodeChunkedBody
Decode a "chunked" transfer-encoded body and return the decoded text
Method decodeDeflate
Decode a zlib deflated message (when Content-encoding = deflate)
Method decodeGzip
Decode a gzip encoded message (when Content-encoding = gzip)
e
top
Variable $expires
Cookie expiry date
Variable $enctype
Request body content type (for POST requests)
Method encodeAuthHeader
Create a HTTP authentication "Authorization:" header according to the specified user, password and authentication method.
Method encodeFormData
Encode date to a multipart/form-data part suitable for a POST request.
Page Exception.php
Exception.php in Exception.php
Class Constant METHOD_CONNECT
Class Constant METHOD_DELETE
Class Constant METHOD_GET
HTTP request methods
Class Constant METHOD_HEAD
Class Constant METHOD_OPTIONS
Class Constant METHOD_POST
Class Constant METHOD_PUT
Class Constant METHOD_TRACE
Method extractBody
Extract the body from a response string
Method extractCode
Extract the response code from a response string
Method extractHeaders
Extract the headers from a response string
Method extractMessage
Extract the HTTP message from a response
Method extractVersion
Extract the HTTP version from a response
f
top
Method factory
Create a new CookieJar object and automatically load into it all the cookies set in an Http_Response object. If $uri is set, it will be considered as the requested URI for setting default domain and path of the cookie.
Method factory
Generate a new Cookie object from a cookie string (for example the value of the Set-Cookie HTTP header)
Variable $files
File upload arrays (used in POST requests)
Method factory
Create a new Zend_Http_Response object from a string
g
top
Method getAllCookies
Get all cookies in the cookie jar as an array
Method getCookie
Get a specific cookie according to a URI and name
Method getDomain
Get cookie domain
Method getExpiryTime
Get the expiry time of the cookie, or null if no expiry time is set
Method getMatchingCookies
Return an array of all cookies matching a specific request according to the request URI, whether session cookies should be sent or not, and the time to consider as "now" when checking cookie expiry time.
Method getName
Get Cookie name
Method getPath
Get the cookie path
Method getValue
Get cookie value
Method get
Send a GET request
Method getCookiejar
Return the current cookie jar or null if none.
Method getHeader
Get the value of a specific header
Method getLastRedirectionsCount
Get the number of redirections done on the last request
Method getLastRequest
Get the last HTTP request as string
Method getMethod
Get the currently-set request method (GET, POST, etc.)
Method getUri
Get the URI for the next request
Method getBody
Get the response body as string
Method getHeader
Get a specific header as string, or null if it is not set
Method getHeaders
Get the response headers
Method getHeadersAsString
Get all headers as string
Method getMessage
Return a message describing the HTTP response code (Eg. "OK", "Not Found", "Moved Permanently")
Method getRawBody
Get the raw response body (as transfered "on wire") as string
Method getStatus
Get the HTTP response status code
Method getVersion
Get the HTTP version of the response
h
top
Variable $headers
Associative array of request headers
Variable $http_version
Request HTTP version (1.0 or 1.1)
Variable $headers
The HTTP response headers array
i
top
Method isExpired
Check whether the cookie has expired
Method isSecure
Check whether the cookie should only be sent over secure connections
Method isSessionCookie
Check whether the cookie is a session cookie (has no expiry time set)
Method isError
Check whether the response is an error
Method isRedirect
Check whether the response is a redirection
Method isSuccessful
Check whether the response in successful
l
top
Variable $last_request
The last HTTP request sent by the client, as string
m
top
Method match
Checks whether the cookie should be sent on not in a specific scenario
Variable $maxRedirects
Maximum number of redirections to follow, 0 for none.
Variable $method
HTTP request method
Variable $message
The HTTP response code as string (e.g. 'Not Found' for 404 or 'Internal Server Error' for 500)
n
top
Variable $name
Cookie name
Class Constant ENC_FORMDATA
Class Constant ENC_URLENCODED
POST data encoding methods
o
top
Class Constant COOKIE_OBJECT
Return cookie(s) as a Zend_Http_Cookie object
Class Constant COOKIE_STRING_ARRAY
Return cookie(s) as a string (suitable for sending in an HTTP request)
Class Constant COOKIE_STRING_CONCAT
Return all cookies as one long string (suitable for sending in an HTTP request)
p
top
Variable $path
Cookie path
Variable $paramsGet
Associative array of GET parameters
Variable $paramsPost
Assiciative array of POST parameters
Variable $proxy
HTTP proxy settings
Method post
Send a POST request
Method put
Send a PUT request
r
top
Variable $raw_post_data
The raw post data to send. Could be set by setRawPostData($data, $enctype).
Variable $redirectCounter
Redirection counter
Page Response.php
Response.php in Response.php
Method request
Send the HTTP request and return an HTTP response object
Method request
Send the HTTP request and return a response
Method resetParameters
Clear all GET and POST parameters
Method resetParameters
Clear all GET and POST parameters
Method responseCodeAsText
A convenience function that returns a text representation of HTTP response codes. Returns null for unknown codes.
s
top
Variable $secure
Whether the cookie is secure or not
Method setAuth
Set HTTP authentication parameters
Method setCookie
Set a cookie parameter
Method setCookie
Add a cookie to the request. If the client has no Cookie Jar, the cookies will be added directly to the headers array as "Cookie" headers.
Method setCookiejar
Set the HTTP client's cookie jar.
Method setEncType
Set the encoding type for POST data
Method setFileUpload
Set a file to upload (using a POST request)
Method setHeader
Set a request header field
Method setHeaders
Set the next request's headers.
Method setMaxRedirects
Set the number of maximum redirections to follow, 0 for none.
Method setMethod
Set the next request's method
Method setParameterGet
Set a GET parameter for the request. Wrapper around _setParameter
Method setParameterPost
Set a POST parameter for the request. Wrapper around _setParameter
Method setProxy
Set a proxy server for the request
Method setRawData
Set the raw (already encoded) POST data.
Method setStrictRedirects
Set whether to strictly follow RFC 2616 when redirecting or not (See documentation for Zend_Http_Client::doStrictRedirects for details)
Method setTimeout
Set the client's connection timeout in seconds, 0 for none
Method setUri
Set the URI for the next request
Method setUserAgent
Set the user agent identification string
t
top
Variable $timeout
Request timeout in seconds
Class Constant HTTP_VER_0
Class Constant HTTP_VER_1
HTTP protocol versions
u
top
Variable $uri
Request URI
Variable $user_agent
The user agent string that identifies the HTTP client
Class Constant AUTH_BASIC
Supported HTTP Authentication methods
v
top
Variable $value
Cookie value
Method validateHeaders
Validate an array of headers.
Variable $version
The HTTP version (1.0, 1.1)
z
top
Class Zend_Http_Cookie
Zend_Http_Cookie in Cookie.php
Zend_Http_Cookie is a class describing an HTTP cookie and all it's parameters.
Class Zend_Http_Cookiejar
Zend_Http_Cookiejar in Cookiejar.php
A Zend_Http_Cookiejar object is designed to contain and maintain HTTP cookies, and should be used along with Zend_Http_Client in order to manage cookies across HTTP requests and responses.
Class Zend_Http_Client
Zend_Http_Client in Client.php
Zend_Http_Client is an implemetation of an HTTP client in PHP. The client
Class Zend_Http_Client_Abstract
Zend_Http_Client_Abstract is the abstract of a Zend HTTP Client class. For the default implementation, use the Zend_Http_Client class.
Class Zend_Http_Exception
Zend_Http_Exception in Exception.php
Class Zend_Http_Response
Zend_Http_Response in Response.php
Zend_Http_Response represents an HTTP 1.0 / 1.1 response message. It includes easy access to all the response's different elemts, as well as some convenience methods for parsing and validating HTTP responses.
a b c d e f g h i l m n o p r s t u v z _