[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 w z _
_
top
Method _getParametersRecursive
Helper method that gets a possibly multi-level parameters array (get or post) and flattens it.
Method _setParameter
Set a GET or POST parameter - used by SetParameterGet and SetParameterPost
Method __construct
Contructor method. Will create a new HTTP client. Accepts the target URL and optionally and array of headers.
Method __construct
Adapter constructor, currently empty. Config is set using setConfig()
Method __construct
Adapter constructor, currently empty. Config is set using setConfig()
Method __destruct
Destructor: make sure the socket is disconnected
Method __destruct
Destructor: make sure the socket is disconnected
Method __construct
Cookie object constructor
Method __toString
Get the cookie as a string, suitable for sending as a "Cookie" header in an HTTP request
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
Construct a new CookieJar object
Method __construct
HTTP response constructor
a
top
Variable $adapter
The adapter used to preform the actual connection to the server
Variable $auth
HTTP Authentication settings
Class Constant AUTH_BASIC
Supported HTTP Authentication methods
Method addResponse
Add another response to the response buffer.
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 entire response as string
b
top
Variable $body
The HTTP response body
c
top
Variable $config
Configuration array, set using the constructor or using ::setConfig()
Variable $cookiejar
The client's cookie jar
Class Constant CONNECT
Page Client.php
Client.php in Client.php
Variable $config
Parameters array
Variable $config
Parameters array
Variable $config
Parameters array
Variable $connected_to
What host/port are we connected to?
Method close
Close the connection to the server
Method close
Close the connection to the server
Method close
Close the connection (dummy)
Method connect
Connect to the remote server
Method connect
Connect to the remote server
Method connect
Connect to the remote server
Method connect
Connect to the remote server
Page Cookie.php
Cookie.php in Cookie.php
Variable $cookies
Array storing cookies
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)
Page CookieJar.php
CookieJar.php in CookieJar.php
Variable $code
The HTTP response code
d
top
Class Constant DELETE
Variable $domain
Cookie domain
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 $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 data to a multipart/form-data part suitable for a POST request.
Class Constant ENC_FORMDATA
Class Constant ENC_URLENCODED
POST data encoding methods
Page Exception.php
Exception.php in Exception.php
Page Exception.php
Exception.php in Exception.php
Variable $expires
Cookie expiry date
Page Exception.php
Exception.php in Exception.php
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
Variable $files
File upload arrays (used in POST requests)
Method fromString
Generate a new Cookie object from a cookie string (for example the value of the Set-Cookie HTTP header)
Method fromResponse
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 fromString
Create a new Zend_Http_Response object from a string
g
top
Class Constant GET
Zend_Http_Client::GET in Client.php
HTTP request methods
Method getCookieJar
Return the current cookie jar or null if none.
Method getHeader
Get the value of a specific header
Method getLastRequest
Get the last HTTP request as string
Method getLastResponse
Get the last HTTP response received by this client
Method getRedirectionsCount
Get the number of redirections done on the last request
Method getUri
Get the URI for the next request
Method getDomain
Get cookie domain
Method getExpiryTime
Get the expiry time of the cookie, or null if no expiry time is set
Method getName
Get Cookie name
Method getPath
Get the cookie path
Method getValue
Get cookie value
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 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 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
Class Constant HEAD
Class Constant HTTP_0
Class Constant HTTP_1
HTTP protocol versions
Variable $headers
The HTTP response headers array
i
top
Page Interface.php
Interface.php in Interface.php
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
Variable $last_response
The last HTTP response received by the client
m
top
Variable $method
HTTP request method
Variable $method
Request method - will be set by write() and might be used by read()
Method match
Checks whether the cookie should be sent or not in a specific scenario
Variable $message
The HTTP response code as string (e.g. 'Not Found' for 404 or 'Internal Server Error' for 500)
Variable $messages
List of all known HTTP response codes - used by responseCodeAsText() to translate numeric codes to messages.
n
top
Variable $name
Cookie name
o
top
Class Constant OPTIONS
p
top
Variable $paramsGet
Associative array of GET parameters
Variable $paramsPost
Assiciative array of POST parameters
Class Constant POST
Method prepare_body
Prepare the request body (for POST and PUT requests)
Method prepare_headers
Prepare the request headers
Class Constant PUT
Zend_Http_Client::PUT in Client.php
Page Proxy.php
Proxy.php in Proxy.php
Variable $path
Cookie path
r
top
Variable $raw_post_data
The raw post data to send. Could be set by setRawData($data, $enctype).
Variable $redirectCounter
Redirection counter
Method request
Send the HTTP request and return an HTTP response object
Method resetParameters
Clear all GET and POST parameters
Variable $responseIndex
Current position in the response buffer
Variable $responses
Buffer of responses to be returned by the read() method. Can be set using setResponse() and addResponse().
Method read
Read response from server
Method read
Return the response set in $this->setResponse()
Method read
Read response from server
Page Response.php
Response.php in Response.php
Method responseCodeAsText
A convenience function that returns a text representation of HTTP response codes. Returns 'Unknown' for unknown codes.
s
top
Method setAdapter
Load the connection adapter
Method setAuth
Set HTTP authentication parameters
Method setConfig
Set configuration parameters for this HTTP client
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 setHeaders
Set one or more request headers
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 setRawData
Set the raw (already encoded) POST data.
Method setUri
Set the URI for the next request
Variable $socket
The socket for server connection
Page Socket.php
Socket.php in Socket.php
Method setConfig
Set the configuration array for the adapter
Method setConfig
Set the configuration array for the adapter
Method setConfig
Set the configuration array for the adapter
Method setResponse
Set the HTTP response(s) to be returned by this adapter
Method setResponseIndex
Sets the position of the response buffer. Selects which response will be returned on the next call to read().
Variable $secure
Whether the cookie is secure or not
t
top
Class Constant TRACE
Page Test.php
Test.php in Test.php
u
top
Variable $uri
Request URI
v
top
Variable $value
Cookie value
Variable $version
The HTTP version (1.0, 1.1)
w
top
Method write
Send request to the remote server
Method write
Send request to the remote server
Method write
Send request to the proxy server
Method write
Send request to the remote server
z
top
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_Exception
Class Zend_Http_Exception
Zend_Http_Exception in Exception.php
Class Zend_Http_Client_Adapter_Exception
Class Zend_Http_Client_Adapter_Interface
An interface description for Zend_Http_Client_Adapter classes.
Class Zend_Http_Client_Adapter_Proxy
HTTP Proxy-supporting Zend_Http_Client adapter class, based on the default socket based adapter.
Class Zend_Http_Client_Adapter_Socket
A sockets based (fsockopen) adapter class for Zend_Http_Client. Can be used on almost every PHP environment, and does not require any special extensions.
Class Zend_Http_Client_Adapter_Test
A testing-purposes adapter.
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_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 w z _