Previous Class
Solar_Http_Request_Adapter

Solar_Http_Request_Adapter_Curl
Overview

Next Page
Constants

Solar_Http_Request_Adapter_Curl

Uses cURL for a standalone HTTP request.

Catalog

This class is part of the Solar_Http package.

Inheritance:

Constants

None.

Public Properties

These are all the public properties in the Solar_Http_Request_Adapter_Curl class.

You can also view the list of all public, protected, and private properties.

$content
Content to send along with the request.

Public Methods

These are all the public methods in the Solar_Http_Request_Adapter_Curl class.

You can also view the list of all public, protected, and private methods.

__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.
apiVersion()
Reports the API version for this class.
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).