Solar_Http_Request_Adapter::setCookie()

public Solar_Http_Request_Adapter Solar_Http_Request_Adapter::setCookie ( string $name , string|array $spec = NULL )

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

Parameters

  • (string) $name: The name of the cookie.

  • (string|array) $spec: If a string, the value of the cookie; if an array, uses the 'value' key for the cookie value. Either way, the value 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