function HTTP_Request::addCookie in Flickr API 5
Appends a cookie to "Cookie:" header
@access public
Parameters
string $name cookie name:
string $value cookie value:
File
- phpFlickr/
PEAR/ HTTP/ Request.php, line 648
Class
- HTTP_Request
- Class for performing HTTP requests
Code
function addCookie($name, $value) {
$cookies = isset($this->_requestHeaders['cookie']) ? $this->_requestHeaders['cookie'] . '; ' : '';
$this
->addHeader('Cookie', $cookies . $name . '=' . $value);
}