[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
Variable $_fileInfoDb
Fileinfo magic database resource
Method _detectFileMimeType
Attempt to detect the MIME type of a file using available extensions
Method _flattenParametersArray
Convert an array of parameters into a flat array of (key, value) pairs
Method _getParametersRecursive
Helper method that gets a possibly multi-level parameters array (get or post) and flattens it.
Method _openTempStream
Create temporary stream
Method _prepareBody
Prepare the request body (for POST and PUT requests)
Method _prepareHeaders
Prepare the request headers
Method _setParameter
Set a GET or POST parameter - used by SetParameterGet and SetParameterPost
Method __construct
Constructor method. Will create a new HTTP client. Accepts the target URL and optionally configuration array.
Variable $_config
Parameters array
Variable $_connected_to
What host/port are we connected to?
Variable $_context
Stream context
Variable $_curl
The curl session handle
Variable $_invalidOverwritableCurlOptions
List of cURL options that should never be overwritten
Variable $_nextRequestWillFail
Wether or not the next request will fail with an exception
Variable $_response
Response gotten from server
Method _checkSocketReadTimeout
Check if the socket has timed out - if so close connection and throw an exception
Method __construct
Adapter constructor, currently empty. Config is set using setConfig()
Method __construct
Adapter constructor
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
Variable $_cleanup
Should we clean up the stream file when this response is closed?
Method __construct
HTTP response constructor
Method __construct
HTTP response constructor
Method __destruct
Method __toString
Implements magic __toString()
a
top
Variable $adapter
The adapter used to perform 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 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
Class Constant CONTENT_LENGTH
Class Constant CONTENT_TYPE
Content attributes
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 to the server
Method close
Close the connection (dummy)
Method close
Close the connection to the server
Method connect
Connect to the remote server
Method connect
Connect to the remote server
Method connect
Connect to the remote server
Method connect
Initialize curl
Method connect
Connect to the remote server
Method connectHandshake
Preform handshaking with HTTPS proxy using CONNECT method
Page Curl.php
Curl.php in Curl.php
Variable $code
The HTTP response code
d
top
Class Constant DELETE
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
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 fromStream
Create a new Zend_Http_Response_Stream object from a string
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 getAdapter
Load the connection adapter
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 getStream
Get status of streaming for received data
Method getUri
Get the URI for the next request
Method getConfig
Retrieve the array of all configuration options
Method getConfig
Retrieve the array of all configuration options
Method getHandle
Get cUrl Handle
Method getStreamContext
Get the stream context for the TCP connection to the server.
Method getBody
Get the response body as string
Method getBody
Get the response body as string
Method getCleanup
Get the cleanup trigger
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 getRawBody
Get the raw response body (as transfered "on wire") as string
Method getStatus
Get the HTTP response status code
Method getStream
Get the response as stream
Method getStreamName
Get file name associated with the stream
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 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
Class Constant MERGE
Variable $method
Request method - will be set by write() and might be used by read()
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 $negotiated
Whether HTTPS CONNECT was already negotiated with the proxy or not
o
top
Class Constant OPTIONS
Variable $out_stream
Stream for storing output
Variable $out_stream
Stream for storing output
p
top
Variable $paramsGet
Associative array of GET parameters
Variable $paramsPost
Associative array of POST parameters
Class Constant POST
Class Constant PUT
Zend_Http_Client::PUT in Client.php
Page Proxy.php
Proxy.php in Proxy.php
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
Read response from server
Method read
Return read response from server
Method read
Return the response set in $this->setResponse()
Method readHeader
Header reader function for CURL
Class Constant READ_TIMEOUT
Page Response.php
Response.php in Response.php
Method readStream
Read stream content and return it as string
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 setStream
Set streaming for received 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
Page Stream.php
Stream.php in Stream.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 setConfig
Set the configuration array for the adapter
Method setCurlOption
Direct setter for cURL adapter related options.
Method setNextRequestWillFail
Set the nextRequestWillFail flag
Method setOutputStream
Set output stream
Method setOutputStream
Set output stream for the response
Method setOutputStream
Set output stream for the response
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().
Method setStreamContext
Set the stream context for the TCP connection to the server
Variable $stream
Response as stream
Variable $stream_name
The name of the file containing the stream
Page Stream.php
Stream.php in Stream.php
Method setCleanup
Set the cleanup trigger
Method setStream
Set the response stream
Method setStreamName
Set file name associated with the stream
t
top
Class Constant TRACE
Page Test.php
Test.php in Test.php
u
top
Variable $uri
Request URI
v
top
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
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 implementation 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_Curl
An adapter class for Zend_Http_Client based on the curl extension.
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 (stream_socket_client) 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_Stream
An interface description for Zend_Http_Client_Adapter_Stream classes.
Class Zend_Http_Client_Adapter_Test
A testing-purposes adapter.
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.
Class Zend_Http_Response_Stream
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 _