Methods

All methods in the Solar_Http_Request_Adapter_Curl class.

Public

__construct()

Constructor.

__destruct()

Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().

__toString()

Returns this object as a string; effectively, the request message to be sent.

_preConfig()

Throws an exception if the curl extension isn't loaded

dump()

Convenience method for getting a dump the whole object, or one of its properties, or an external variable.

fetch()

Fetches the last Solar_Http_Response object from the specified URI.

fetchAll()

Fetches all Solar_Http_Response objects from the specified URI (this includes all intervening redirects).

fetchRaw()

Fetches from the specified URI and returns the response message as a string.

getContent()

Returns the body content.

getOptions()

Returns all options as an array.

locale()

Looks up class-specific locale strings based on a key.

setBasicAuth()

Sets "Basic" authorization credentials.

setCharset()

Sets the character set for the body content.

setContent()

Sets the body content; technically you can use the public $content property, but this allows method-chaining.

setContentType()

Sets the content-type for the body content.

setCookie()

Sets a cookie value in $this->_cookies to add to the request.

setCookies()

Sets multiple cookie values in $this->_cookies to add to the request.

setHeader()

Sets a header value in $this->_headers for sending at fetch() time.

setMaxRedirects()

When making the request, allow no more than this many redirects.

setMethod()

Sets the HTTP method for the request (GET, POST, etc).

setProxy()

Send all requests through this proxy server.

setReferer()

Sets the referer for the request.

setSslCafile()

Location of Certificate Authority file on local filesystem which should be used with the $_ssl_verify_peer option to authenticate the identity of the remote peer.

setSslCapath()

If $_ssl_cafile is not specified or if the certificate is not found there, this directory path is searched for a suitable certificate.

setSslLocalCert()

Path to local certificate file on filesystem.

setSslPassphrase()

Passphrase with which the $_ssl_local_cert file was encoded.

setSslVerifyPeer()

Require verification of SSL certificate used?

setTimeout()

Sets the request timeout in seconds.

setUri()

Sets the URI for the request.

setUserAgent()

Sets the User-Agent for the request.

setVersion()

Sets the HTTP protocol version for the request (1.0 or 1.1).

Protected

_buildConfig()

Builds and returns the default config for a class, including all configs inherited from its parents.

_exception()

Convenience method for returning exceptions with localized text.

_fetch()

Support method to make the request, then return headers and content.

_parseCookie()

Parses a "Set-Cookie" header value and returns it as an array.

_postConfig()

A hook that activates after _buildConfig() in the constructor.

_postConstruct()

Post-construction tasks to complete object construction.

_prepareCurlHandle()

Builds a cURL resource handle for _fetch() from property options.

_prepareRequest()

Prepares $this->_headers, $this->_cookies, and $this->content for the request.

Private

None.



Local