From: Stig Bakken Date: Sat, 13 Apr 2002 00:13:37 +0000 (+0000) Subject: * add cookie authentication to PEAR_Remote (temporarily in addition to http auth) X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~679 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d09a5e1999fd049cc58664aa1962d080a37e8b5;p=php * add cookie authentication to PEAR_Remote (temporarily in addition to http auth) --- diff --git a/pear/PEAR/Remote.php b/pear/PEAR/Remote.php index 482ff88dde..4b8bd7bdef 100644 --- a/pear/PEAR/Remote.php +++ b/pear/PEAR/Remote.php @@ -70,6 +70,7 @@ class PEAR_Remote extends PEAR $username = $this->config->get('username'); $password = $this->config->get('password'); if ($username && $password) { + $req_headers .= "Cookie: PEAR_USER=$username; PEAR_PW=$password\r\n"; $tmp = base64_encode("$username:$password"); $req_headers .= "Authorization: Basic $tmp\r\n"; }