This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Microsoft XML > May 2007 > serverxmlHTTP authentication on Windows Server 2003 x64 problem.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author serverxmlHTTP authentication on Windows Server 2003 x64 problem.
Michael Banks

2007-05-09, 6:17 pm

I am using Windows Server 2003 x64. I am using
MSXML2.ServerXMLHTTP.6.0 and I am using the GET method to retrieve a
webpage, that has NTLM authentication turned on and anonymous turned
off.

If I run my code from the 64-bit command prompt I get back the webpage
and a status of 200.

If I run my code from the 32-bit command prompt I get back a 401 error
message that anonymous doesn't not have permissions.

The problem is that my IIS is in 32-bit mode so this code when run from
PHP runs in 32bit mode and I get the 401 error.

Does any one have any ideas?

Here is my code.

wscript.echo "Reach To IIS server on Computer B "

set http = wscript.createobject("MSXML2.ServerXMLHTTP.6.0")

http.open "GET", "http://xxxxx/test/logon_user2.asp", false
http.send

wscript.echo "Receiver Status Text: " & http.statusText & " (" &
http.status & ")"
wscript.echo http.responseText

*** Sent via Developersdex http://www.developersdex.com ***
Alex Krawarik [MSFT]

2007-05-16, 6:18 pm

Try running proxycfg -u from the 32-bit CMD window.

Alex

"Michael Banks" <mbanks850@hotmail.com> wrote in message
news:%230KfwmkkHHA.4628@TK2MSFTNGP06.phx.gbl...
>I am using Windows Server 2003 x64. I am using
> MSXML2.ServerXMLHTTP.6.0 and I am using the GET method to retrieve a
> webpage, that has NTLM authentication turned on and anonymous turned
> off.
>
> If I run my code from the 64-bit command prompt I get back the webpage
> and a status of 200.
>
> If I run my code from the 32-bit command prompt I get back a 401 error
> message that anonymous doesn't not have permissions.
>
> The problem is that my IIS is in 32-bit mode so this code when run from
> PHP runs in 32bit mode and I get the 401 error.
>
> Does any one have any ideas?
>
> Here is my code.
>
> wscript.echo "Reach To IIS server on Computer B "
>
> set http = wscript.createobject("MSXML2.ServerXMLHTTP.6.0")
>
> http.open "GET", "http://xxxxx/test/logon_user2.asp", false
> http.send
>
> wscript.echo "Receiver Status Text: " & http.statusText & " (" &
> http.status & ")"
> wscript.echo http.responseText
>
> *** Sent via Developersdex http://www.developersdex.com ***



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews