|
Previous Page |
Solar_Http_Request_Adapter |
Next Page |
setCookie()
public
Solar_Http_Request_Adapter
setCookie (
string $key,
string $val default ''
)
Sets a cookie value in $this->_cookies to add to the request.
Parameters
- (string)
$key: The name of the cookie. - (string)
$val: The value of the cookie; will be URL-encoded at fetch() time.
Returns
- (Solar_Http_Request_Adapter) This adapter object.
Description
Sets a cookie value in $this->_cookies to add to the request.
Local
- Overview
- Constants
- Properties
- Methods
- __construct()
- __destruct()
- __toString()
- _exception()
- _fetch()
- _parseCookie()
- _prepareRequest()
- apiVersion()
- dump()
- fetch()
- fetchAll()
- fetchRaw()
- getContent()
- getOptions()
- locale()
- setBasicAuth()
- setCharset()
- setContent()
- setContentType()
- setCookie()
- setCookies()
- setHeader()
- setMaxRedirects()
- setMethod()
- setProxy()
- setReferer()
- setSslCafile()
- setSslCapath()
- setSslLocalCert()
- setSslPassphrase()
- setSslVerifyPeer()
- setTimeout()
- setUri()
- setUserAgent()
- setVersion()