From 5d09a5e1999fd049cc58664aa1962d080a37e8b5 Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Sat, 13 Apr 2002 00:13:37 +0000 Subject: [PATCH] * add cookie authentication to PEAR_Remote (temporarily in addition to http auth) --- pear/PEAR/Remote.php | 1 + 1 file changed, 1 insertion(+) 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"; } -- 2.50.1