Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XMLHTTP - Not working with integrated windows authen. 1

Status
Not open for further replies.

nidifice

Programmer
Oct 9, 2003
47
US
The XMLHTTP object is still something new to me so bare with me if I'm being stupid.

Our production server is XP 2003 and security is set to Ingegrated Windows Authentication (no anonymous access, Intranet).

Here is just some test code I'm working with.

<%
dim objXMLHTTP

set objXMLHTTP = Server.CreateObject(&quot;MSXML2.ServerXMLHTTP&quot;)

response.write request.ServerVariables(&quot;ALL_HTTP&quot;)

objXMLHTTP.Open &quot;GET&quot;, &quot;****://gnet/faq.asp&quot;, false
http excluded above for this post

objXMLHTTP.Send

%>

<%=objxmlhttp.GetAllResponseHeaders%>

<%=objXMLHTTP.ResponseText%>

':::::::::::::::::::::::::::::::::::::::::::
AND HERE IS THE RESULTS I GET.
':::::::::::::::::::::::::::::::::::::::::::

HTTP_CONNECTION:Keep-Alive HTTP_ACCEPT:*/* HTTP_ACCEPT_ENCODING:gzip, deflate HTTP_ACCEPT_LANGUAGE:en-us HTTP_AUTHORIZATION:NTLM TlRMTVNTUAADAAAAGAAYAG4AAAAYABgAhgAAABIAEgBAAAAADgAOAFIAAAAOAA4AYAAAAAAAAACeAAAABYKAoEcATwBSAEQATQBBAE4AUwAxAGMAbwBsAHIAaQBsAGUAQwBPAEwAUgBJAEwARQDtGg0LNg3fK7LJnA4ELZh4dQhcbt7kIc5g+RJAszEIyvz43T9uXIzUGZEWLnjVzw4= HTTP_COOKIE:ASPSESSIONIDSAQSADTS=AELHCGDDLMJHNGOENKKEKMNJ; HTTP_HOST:gnet HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)


Content-Length: 1656 Content-Type: text/html Server: Microsoft-IIS/6.0 Negotiate NTLM Date: Wed, 22 Oct 2003 14:28:58 GMT

You are not authorized to view this page
You do not have permission to view this directory or page using the credentials that you supplied because your Web browser is sending a header field that the Web server is not configured to accept.

... rest of MS IE error page ...
 
add the username and password to the open method. This will pass the credentials to the page and allow the user to log in (if he is permitted)

objXML.open &quot;POST&quot;, &quot;page.htm&quot;, False, UserName, PWD
 
Tried that already. I have access to view the page itself, but if I try getting to it throught the XMLHTTP object...no go.

Do you think it would work if I was able to create a local user on the server? I don't think that is probably the right way, but I'm getting desperate.


msxml3.dll error '80072eef'

The login request was denied

/test.asp, line 22
 
Are you passing the domain with the username (i.e. domain\username)?
 
THAT WAS IT!

Told you it was probably something stupid...simple at least.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top