Cookies --
Making use of Cookies within HTTP_Request.
How to add Cookie to a HTTP request
Adding a cookie to the request
In this example a cookie named version is added
to the HTTP request. The value of this cookie is the version string
of the PHP interpreter that is running the instance of
HTTP_Request.
<?php require_once "HTTP/Request.php";
$req =& new HTTP_Request("http://example.com/"); $req->addCookie("version", phpversion());