]> granicus.if.org Git - php/commitdiff
* add cookie authentication to PEAR_Remote (temporarily in addition to http auth)
authorStig Bakken <ssb@php.net>
Sat, 13 Apr 2002 00:13:37 +0000 (00:13 +0000)
committerStig Bakken <ssb@php.net>
Sat, 13 Apr 2002 00:13:37 +0000 (00:13 +0000)
pear/PEAR/Remote.php

index 482ff88dde94453d837b62c7c14aea24e8760b80..4b8bd7bdefd51a08b50bffde60773a62c1604d88 100644 (file)
@@ -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";
         }