TestingParty08: drupal_http_request basic auth needs a test
chx - August 17, 2008 - 08:10
| Project: | Drupal |
| Version: | 7.x-dev |
| Component: | tests |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Description
Run drupal_http_request for http://user:pass@$base_url and assert $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] .

#1
Patch created during the TestingParty08 with nickske.
Creates a dummy module that simply returns the two server variables that were passed using HTTP basic authentication, and check that the results are correct.
#2
this is the test I started writing during the awesome testing party. I incorporated the above mentioned patch. If there are any comments regarding the code quality or anything, please let me know.
----
Sorry, posted this in the wrong issue.
#3
edit: error.
#4
Reviewing.
#5
#296310: TestingParty08: drupal_http_request redirects need a test includes this test and documents the patch creators.