Bug #69742 [Opn->Csd]: HTTPAUTH Not responding to 401 w/creds
| From: | mike at geeklabs dot com | Date: | Mon, 01 Jun 2015 17:47:58 +0000 |
| Subject: | Bug #69742 [Opn->Csd]: HTTPAUTH Not responding to 401 w/creds | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-193055@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69742&edit=1
ID: 69742
User updated by: mike at geeklabs dot com
Reported by: mike at geeklabs dot com
Summary: HTTPAUTH Not responding to 401 w/creds
-Status: Open
+Status: Closed
Type: Bug
Package: cURL related
Operating System: Ubuntu 14.04
PHP Version: 5.6.9
Block user comment: N
Private report: N
New Comment:
programmer stupidity, cut and pasted old example with " around CURLAUTH_BASIC begging
forgiveness for noise.
Previous Comments:
------------------------------------------------------------------------
[2015-06-01 17:31:30] mike at geeklabs dot com
Description:
------------
On Ubuntu 14.04 with PHP 5.5.9-1ubuntu4.9 (cli) (built: Apr 17 2015 11:44:57)
and possibly newer, when a webserver sends a 401 error, requesting authentication, PHP is not
responding with credentials. Exact same code works on PHP 5.3,
PHPCURL seems to be ignoring the Apache2 headers, which may be a related issue.
Test script:
---------------
curl_setopt($ch, CURLOPT_HTTPAUTH, "CURLAUTH_BASIC");
curl_setopt($ch, CURLOPT_USERPWD, "$apilogin:$apipassword");
Expected result:
----------------
I expect it to respond to the 401 with the basic auth credentials.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69742&edit=1