## [Zend_Http] element index

### Package indexes

- Zend
- Zend_Acl
- Zend_Auth
- Zend_Cache
- Zend_Config
- Zend_Console_Getopt
- Zend_Controller
- Zend_Date
- Zend_Db
- Zend_Feed
- Zend_Filter
- Zend_Gdata
- Zend_Json
- Zend_Locale
- Zend_Log
- Zend_Mail
- Zend_Measure
- Zend_Mime
- Zend_Pdf
- Zend_Request
- Zend_Rest
- Zend_Search
- Zend_Search_Lucene
- Zend_Server
- Zend_Service
- Zend_Session
- Zend_Uri
- Zend_Validate
- Zend_View
- Zend_XmlRpc

All elements
_
top

_getParametersRecursive
  Zend_Http_Client::_getParametersRecursive() in Client.php
  Helper method that gets a possibly multi-level parameters array (get or post) and flattens it.
_setParameter
  Zend_Http_Client::_setParameter() in Client.php
  Set a GET or POST parameter - used by SetParameterGet and SetParameterPost
__construct
  Zend_Http_Client::__construct() in Client.php
  Contructor method. Will create a new HTTP client. Accepts the target URL and optionally and array of headers.
__construct
  Zend_Http_Client_Adapter_Test::__construct() in Test.php
  Adapter constructor, currently empty. Config is set using setConfig()
__construct
  Zend_Http_Client_Adapter_Socket::__construct() in Socket.php
  Adapter constructor, currently empty. Config is set using setConfig()
__destruct
  Zend_Http_Client_Adapter_Proxy::__destruct() in Proxy.php
  Destructor: make sure the socket is disconnected
__destruct
  Zend_Http_Client_Adapter_Socket::__destruct() in Socket.php
  Destructor: make sure the socket is disconnected
__construct
  Zend_Http_Cookie::__construct() in Cookie.php
  Cookie object constructor
__toString
  Zend_Http_Cookie::__toString() in Cookie.php
  Get the cookie as a string, suitable for sending as a "Cookie" header in an HTTP request
_flattenCookiesArray
  Zend_Http_CookieJar::_flattenCookiesArray() in CookieJar.php
  Helper function to recursivly flatten an array. Shoud be used when exporting the cookies array (or parts of it)
_matchDomain
  Zend_Http_CookieJar::_matchDomain() in CookieJar.php
  Return a subset of the cookies array matching a specific domain
_matchPath
  Zend_Http_CookieJar::_matchPath() in CookieJar.php
  Return a subset of a domain-matching cookies that also match a specified path
__construct
  Zend_Http_CookieJar::__construct() in CookieJar.php
  Construct a new CookieJar object
__construct
  Zend_Http_Response::__construct() in Response.php
  HTTP response constructor

a
top

$adapter
  Zend_Http_Client::$adapter in Client.php
  The adapter used to preform the actual connection to the server
$auth
  Zend_Http_Client::$auth in Client.php
  HTTP Authentication settings
addResponse
  Zend_Http_Client_Adapter_Test::addResponse() in Test.php
  Add another response to the response buffer.
addCookie
  Zend_Http_CookieJar::addCookie() in CookieJar.php
  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.
addCookiesFromResponse
  Zend_Http_CookieJar::addCookiesFromResponse() in CookieJar.php
  Parse an HTTP response, adding all the cookies set in that response to the cookie jar.
asString
  Zend_Http_Response::asString() in Response.php
  Get the entire response as string

b
top

$body
  Zend_Http_Response::$body in Response.php
  The HTTP response body

c
top

$config
  Zend_Http_Client::$config in Client.php
  Configuration array, set using the constructor or using ::setConfig()
$cookiejar
  Zend_Http_Client::$cookiejar in Client.php
  The client's cookie jar
Client.php
  Client.php in Client.php
$config
  Zend_Http_Client_Adapter_Proxy::$config in Proxy.php
  Parameters array
$config
  Zend_Http_Client_Adapter_Test::$config in Test.php
  Parameters array
$config
  Zend_Http_Client_Adapter_Socket::$config in Socket.php
  Parameters array
$connected_to
  Zend_Http_Client_Adapter_Socket::$connected_to in Socket.php
  What host/port are we connected to?
close
  Zend_Http_Client_Adapter_Socket::close() in Socket.php
  Close the connection to the server
close
  Zend_Http_Client_Adapter_Interface::close() in Interface.php
  Close the connection to the server
close
  Zend_Http_Client_Adapter_Test::close() in Test.php
  Close the connection (dummy)
connect
  Zend_Http_Client_Adapter_Test::connect() in Test.php
  Connect to the remote server
connect
  Zend_Http_Client_Adapter_Socket::connect() in Socket.php
  Connect to the remote server
connect
  Zend_Http_Client_Adapter_Proxy::connect() in Proxy.php
  Connect to the remote server
connect
  Zend_Http_Client_Adapter_Interface::connect() in Interface.php
  Connect to the remote server
Cookie.php
  Cookie.php in Cookie.php
$cookies
  Zend_Http_CookieJar::$cookies in CookieJar.php
  Array storing cookies
CookieJar.php
  CookieJar.php in CookieJar.php
$code
  Zend_Http_Response::$code in Response.php
  The HTTP response code

d
top

$domain
  Zend_Http_Cookie::$domain in Cookie.php
  Cookie domain
decodeChunkedBody
  Zend_Http_Response::decodeChunkedBody() in Response.php
  Decode a "chunked" transfer-encoded body and return the decoded text
decodeDeflate
  Zend_Http_Response::decodeDeflate() in Response.php
  Decode a zlib deflated message (when Content-encoding = deflate)
decodeGzip
  Zend_Http_Response::decodeGzip() in Response.php
  Decode a gzip encoded message (when Content-encoding = gzip)

e
top

$enctype
  Zend_Http_Client::$enctype in Client.php
  Request body content type (for POST requests)
DELETE
  Zend_Http_Client::DELETE in Client.php
encodeAuthHeader
  Zend_Http_Client::encodeAuthHeader() in Client.php
  Create a HTTP authentication "Authorization:" header according to the specified user, password and authentication method.
encodeFormData
  Zend_Http_Client::encodeFormData() in Client.php
  Encode data to a multipart/form-data part suitable for a POST request.
GET
  Zend_Http_Client::GET in Client.php
  HTTP request methods
HEAD
  Zend_Http_Client::HEAD in Client.php
Exception.php
  Exception.php in Exception.php
Exception.php
  Exception.php in Exception.php
$expires
  Zend_Http_Cookie::$expires in Cookie.php
  Cookie expiry date
Exception.php
  Exception.php in Exception.php
extractBody
  Zend_Http_Response::extractBody() in Response.php
  Extract the body from a response string
extractCode
  Zend_Http_Response::extractCode() in Response.php
  Extract the response code from a response string
extractHeaders
  Zend_Http_Response::extractHeaders() in Response.php
  Extract the headers from a response string
extractMessage
  Zend_Http_Response::extractMessage() in Response.php
  Extract the HTTP message from a response
extractVersion
  Zend_Http_Response::extractVersion() in Response.php
  Extract the HTTP version from a response

f
top

$files
  Zend_Http_Client::$files in Client.php
  File upload arrays (used in POST requests)
fromString
  Zend_Http_Cookie::fromString() in Cookie.php
  Generate a new Cookie object from a cookie string (for example the value of the Set-Cookie HTTP header)
fromResponse
  Zend_Http_CookieJar::fromResponse() in CookieJar.php
  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.
fromString
  Zend_Http_Response::fromString() in Response.php
  Create a new Zend_Http_Response object from a string

g
top

getCookieJar
  Zend_Http_Client::getCookieJar() in Client.php
  Return the current cookie jar or null if none.
getHeader
  Zend_Http_Client::getHeader() in Client.php
  Get the value of a specific header
getLastRequest
  Zend_Http_Client::getLastRequest() in Client.php
  Get the last HTTP request as string
getLastResponse
  Zend_Http_Client::getLastResponse() in Client.php
  Get the last HTTP response received by this client
getRedirectionsCount
  Zend_Http_Client::getRedirectionsCount() in Client.php
  Get the number of redirections done on the last request
getUri
  Zend_Http_Client::getUri() in Client.php
  Get the URI for the next request
getDomain
  Zend_Http_Cookie::getDomain() in Cookie.php
  Get cookie domain
getExpiryTime
  Zend_Http_Cookie::getExpiryTime() in Cookie.php
  Get the expiry time of the cookie, or null if no expiry time is set
getName
  Zend_Http_Cookie::getName() in Cookie.php
  Get Cookie name
getPath
  Zend_Http_Cookie::getPath() in Cookie.php
  Get the cookie path
getValue
  Zend_Http_Cookie::getValue() in Cookie.php
  Get cookie value
getAllCookies
  Zend_Http_CookieJar::getAllCookies() in CookieJar.php
  Get all cookies in the cookie jar as an array
getCookie
  Zend_Http_CookieJar::getCookie() in CookieJar.php
  Get a specific cookie according to a URI and name
getMatchingCookies
  Zend_Http_CookieJar::getMatchingCookies() in CookieJar.php
  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.
getBody
  Zend_Http_Response::getBody() in Response.php
  Get the response body as string
getHeader
  Zend_Http_Response::getHeader() in Response.php
  Get a specific header as string, or null if it is not set
getHeaders
  Zend_Http_Response::getHeaders() in Response.php
  Get the response headers
getHeadersAsString
  Zend_Http_Response::getHeadersAsString() in Response.php
  Get all headers as string
getMessage
  Zend_Http_Response::getMessage() in Response.php
  Return a message describing the HTTP response code (Eg. "OK", "Not Found", "Moved Permanently")
getRawBody
  Zend_Http_Response::getRawBody() in Response.php
  Get the raw response body (as transfered "on wire") as string
getStatus
  Zend_Http_Response::getStatus() in Response.php
  Get the HTTP response status code
getVersion
  Zend_Http_Response::getVersion() in Response.php
  Get the HTTP version of the response

h
top

$headers
  Zend_Http_Client::$headers in Client.php
  Associative array of request headers
$headers
  Zend_Http_Response::$headers in Response.php
  The HTTP response headers array

i
top

Interface.php
  Interface.php in Interface.php
isExpired
  Zend_Http_Cookie::isExpired() in Cookie.php
  Check whether the cookie has expired
isSecure
  Zend_Http_Cookie::isSecure() in Cookie.php
  Check whether the cookie should only be sent over secure connections
isSessionCookie
  Zend_Http_Cookie::isSessionCookie() in Cookie.php
  Check whether the cookie is a session cookie (has no expiry time set)
isError
  Zend_Http_Response::isError() in Response.php
  Check whether the response is an error
isRedirect
  Zend_Http_Response::isRedirect() in Response.php
  Check whether the response is a redirection
isSuccessful
  Zend_Http_Response::isSuccessful() in Response.php
  Check whether the response in successful

l
top

$last_request
  Zend_Http_Client::$last_request in Client.php
  The last HTTP request sent by the client, as string
$last_response
  Zend_Http_Client::$last_response in Client.php
  The last HTTP response received by the client
loadAdapter
  Zend_Http_Client::loadAdapter() in Client.php
  Load the connection adapter

m
top

$method
  Zend_Http_Client::$method in Client.php
  HTTP request method
$method
  Zend_Http_Client_Adapter_Socket::$method in Socket.php
  Request method - will be set by write() and might be used by read()
match
  Zend_Http_Cookie::match() in Cookie.php
  Checks whether the cookie should be sent or not in a specific scenario
$message
  Zend_Http_Response::$message in Response.php
  The HTTP response code as string (e.g. 'Not Found' for 404 or 'Internal Server Error' for 500)

n
top

ENC_FORMDATA
  Zend_Http_Client::ENC_FORMDATA in Client.php
ENC_URLENCODED
  Zend_Http_Client::ENC_URLENCODED in Client.php
  POST data encoding methods
$name
  Zend_Http_Cookie::$name in Cookie.php
  Cookie name

o
top

CONNECT
  Zend_Http_Client::CONNECT in Client.php
POST
  Zend_Http_Client::POST in Client.php
COOKIE_OBJECT
  Zend_Http_CookieJar::COOKIE_OBJECT in CookieJar.php
  Return cookie(s) as a Zend_Http_Cookie object
COOKIE_STRING_ARRAY
  Zend_Http_CookieJar::COOKIE_STRING_ARRAY in CookieJar.php
  Return cookie(s) as a string (suitable for sending in an HTTP request)
COOKIE_STRING_CONCAT
  Zend_Http_CookieJar::COOKIE_STRING_CONCAT in CookieJar.php
  Return all cookies as one long string (suitable for sending in an HTTP request)

p
top

$paramsGet
  Zend_Http_Client::$paramsGet in Client.php
  Associative array of GET parameters
$paramsPost
  Zend_Http_Client::$paramsPost in Client.php
  Assiciative array of POST parameters
OPTIONS
  Zend_Http_Client::OPTIONS in Client.php
prepare_body
  Zend_Http_Client::prepare_body() in Client.php
  Prepare the request body (for POST and PUT requests)
prepare_headers
  Zend_Http_Client::prepare_headers() in Client.php
  Prepare the request headers
Proxy.php
  Proxy.php in Proxy.php
$path
  Zend_Http_Cookie::$path in Cookie.php
  Cookie path

r
top

$raw_post_data
  Zend_Http_Client::$raw_post_data in Client.php
  The raw post data to send. Could be set by setRawData($data, $enctype).
$redirectCounter
  Zend_Http_Client::$redirectCounter in Client.php
  Redirection counter
request
  Zend_Http_Client::request() in Client.php
  Send the HTTP request and return an HTTP response object
resetParameters
  Zend_Http_Client::resetParameters() in Client.php
  Clear all GET and POST parameters
TRACE
  Zend_Http_Client::TRACE in Client.php
$responseIndex
  Zend_Http_Client_Adapter_Test::$responseIndex in Test.php
  Current position in the response buffer
$responses
  Zend_Http_Client_Adapter_Test::$responses in Test.php
  Buffer of responses to be returned by the read() method. Can be set using setResponse() and addResponse().
read
  Zend_Http_Client_Adapter_Interface::read() in Interface.php
  Read response from server
read
  Zend_Http_Client_Adapter_Test::read() in Test.php
  Return the response set in $this->setResponse()
read
  Zend_Http_Client_Adapter_Socket::read() in Socket.php
  Read response from server
responseCodeAsText
  Zend_Http_Response::responseCodeAsText() in Response.php
  A convenience function that returns a text representation of HTTP response codes. Returns 'Unknown' for unknown codes.
Response.php
  Response.php in Response.php

s
top

setAuth
  Zend_Http_Client::setAuth() in Client.php
  Set HTTP authentication parameters
setConfig
  Zend_Http_Client::setConfig() in Client.php
  Set configuration parameters for this HTTP client
setCookie
  Zend_Http_Client::setCookie() in Client.php
  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.
setCookieJar
  Zend_Http_Client::setCookieJar() in Client.php
  Set the HTTP client's cookie jar.
setEncType
  Zend_Http_Client::setEncType() in Client.php
  Set the encoding type for POST data
setFileUpload
  Zend_Http_Client::setFileUpload() in Client.php
  Set a file to upload (using a POST request)
setHeaders
  Zend_Http_Client::setHeaders() in Client.php
  Set one or more request headers
setMethod
  Zend_Http_Client::setMethod() in Client.php
  Set the next request's method
setParameterGet
  Zend_Http_Client::setParameterGet() in Client.php
  Set a GET parameter for the request. Wrapper around _setParameter
setParameterPost
  Zend_Http_Client::setParameterPost() in Client.php
  Set a POST parameter for the request. Wrapper around _setParameter
setRawData
  Zend_Http_Client::setRawData() in Client.php
  Set the raw (already encoded) POST data.
setUri
  Zend_Http_Client::setUri() in Client.php
  Set the URI for the next request
$socket
  Zend_Http_Client_Adapter_Socket::$socket in Socket.php
  The socket for server connection
setConfig
  Zend_Http_Client_Adapter_Test::setConfig() in Test.php
  Set the configuration array for the adapter
setConfig
  Zend_Http_Client_Adapter_Interface::setConfig() in Interface.php
  Set the configuration array for the adapter
setConfig
  Zend_Http_Client_Adapter_Socket::setConfig() in Socket.php
  Set the configuration array for the adapter
setResponse
  Zend_Http_Client_Adapter_Test::setResponse() in Test.php
  Set the HTTP response(s) to be returned by this adapter
setResponseIndex
  Zend_Http_Client_Adapter_Test::setResponseIndex() in Test.php
  Sets the position of the response buffer. Selects which response will be returned on the next call to read().
Socket.php
  Socket.php in Socket.php
$secure
  Zend_Http_Cookie::$secure in Cookie.php
  Whether the cookie is secure or not

t
top

HTTP_0
  Zend_Http_Client::HTTP_0 in Client.php
HTTP_1
  Zend_Http_Client::HTTP_1 in Client.php
  HTTP protocol versions
Test.php
  Test.php in Test.php

u
top

$uri
  Zend_Http_Client::$uri in Client.php
  Request URI
AUTH_BASIC
  Zend_Http_Client::AUTH_BASIC in Client.php
  Supported HTTP Authentication methods
PUT
  Zend_Http_Client::PUT in Client.php

v
top

$value
  Zend_Http_Cookie::$value in Cookie.php
  Cookie value
$version
  Zend_Http_Response::$version in Response.php
  The HTTP version (1.0, 1.1)

w
top

write
  Zend_Http_Client_Adapter_Test::write() in Test.php
  Send request to the remote server
write
  Zend_Http_Client_Adapter_Socket::write() in Socket.php
  Send request to the remote server
write
  Zend_Http_Client_Adapter_Proxy::write() in Proxy.php
  Send request to the proxy server
write
  Zend_Http_Client_Adapter_Interface::write() in Interface.php
  Send request to the remote server

z
top

Zend_Http_Client
  Zend_Http_Client in Client.php
  Zend_Http_Client is an implemetation of an HTTP client in PHP. The client
Zend_Http_Client_Exception
  Zend_Http_Client_Exception in Exception.php
Zend_Http_Exception
  Zend_Http_Exception in Exception.php
Zend_Http_Client_Adapter_Exception
  Zend_Http_Client_Adapter_Exception in Exception.php
Zend_Http_Client_Adapter_Interface
  Zend_Http_Client_Adapter_Interface in Interface.php
  An interface description for Zend_Http_Client_Adapter classes.
Zend_Http_Client_Adapter_Proxy
  Zend_Http_Client_Adapter_Proxy in Proxy.php
  HTTP Proxy-supporting Zend_Http_Client adapter class, based on the default socket based adapter.
Zend_Http_Client_Adapter_Socket
  Zend_Http_Client_Adapter_Socket in Socket.php
  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.
Zend_Http_Client_Adapter_Test
  Zend_Http_Client_Adapter_Test in Test.php
  A testing-purposes adapter.
Zend_Http_Cookie
  Zend_Http_Cookie in Cookie.php
  Zend_Http_Cookie is a class describing an HTTP cookie and all it's parameters.
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.
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.