Re: a bit OT - Does XMLHTTP work with Digest Authentication?
| From: | Casey | Date: | Thu, 20 Dec 2007 03:44:50 +0000 |
| Subject: | Re: a bit OT - Does XMLHTTP work with Digest Authentication? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-266132@lists.php.net to get a copy of this message | ||
On Dec 19, 2007 10:24 AM, Shu-Wai Chow <schow@macnexus.org> wrote:
> I've been searching all over MSDN for this info, but can't find
> anything. I have a script under a directory protected by HTTP Digest
> authentication. This is an Apache server on Linux.
>
> When I try to access the script through ajax using the XMLHttpRequest
> object, everything is fine in all browsers including IE 7, which uses
> XMLHttpRequest. In IE 6 and below, using Microsoft.XMLHTTP, the
> connection fails. HttpStatus returns an odd number (it's five digits)
> and the responseText and responseXML properties are empty.
>
> I'm embedding the username and password according to the open() method spec:
>
> xmlhttp.open('GET', 'script/path', true, 'username',
> 'password');
>
> I originally wrote the responses and checks in PHP using the example
> given in the HTTP Authentication section of the manual, but switched to
> .htaccess, thinking it was a problem. It didn't help. However, when I
> switched the AuthType to Basic, IE 6 worked fine.
>
> Does anyone have any experience using XMLHTTP with digest authentication
> that can shed some light on this?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
I've run into this problem before... Try searching Google with the
five-digit status code. It's one of Microsoft's non-standard codes...
-Casey