Browse Source

* add cookie authentication to PEAR_Remote (temporarily in addition to http auth)

experimental/new_ui_api
Stig Bakken 24 years ago
parent
commit
5d09a5e199
  1. 1
      pear/PEAR/Remote.php

1
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";
}

Loading…
Cancel
Save