Previous Page
setContentType()

Solar_Http_Request_Adapter_Stream
setCookie()

Next Page
setCookies()

setCookie()

public Solar_Http_Request_Adapter setCookie ( string $key, string $val default '' )

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

Inherited from Solar_Http_Request_Adapter.

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.