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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSXML (XMLHTTP) Object - Server Settings

Status
Not open for further replies.

nidifice

Programmer
Oct 9, 2003
47
US
MSXML2.ServerXMLHTTP

I'm using this object to POST information into a results asp page. Everything works perfect on my site, but not on my production intranet.

ERROR PAGE:

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.


I'm not sure what settings on the LIVE server are different from my TEST server. It doesn't seem to be anything that is jumping out at me.
 
Hello dustinbrooks,

May I ask what are the lines you set setrequestheader for the xmlhttp (or similarly named) object? ie the lines
Code:
     xmlhttp.setrequestheader ???,??? <<---
regards - tsuji
 
Response.Buffer = True
Dim objXMLHTTP, xml, item, strpost

Set xml = Server.CreateObject(&quot;MSXML2.ServerXMLHTTP&quot;)

xml.Open &quot;POST&quot;, &quot;****://gnet/assetprotection/frm_investigationreport_verify.asp&quot;,false

xml.setRequestHeader &quot;Content-Type&quot;, &quot;application/x-
xml.Send strPostInfo

Response.Write xml.responseText



Set xml = Nothing
 
Well does anyone at least know of any specific settings that have to be on the web server in order to use XMLHTTP?

 
dustinbrooks,

If it happens as the first time your post to the production server, I would look into running proxy configuration proxycfg utility. (But, I think you probably had done something in that direction since day-one?) Otherwise, security-related? I'm still searching for my learning.

regards - tsuji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top