INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

MSXML (XMLHTTP) Object - Server Settings

MSXML (XMLHTTP) Object - Server Settings

(OP)
MSXML2.ServerXMLHTTP

I'm using this object to POST information into a results asp page. Everything works perfect on my http://LocalHost 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 WWW-Authenticate 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.

RE: MSXML (XMLHTTP) Object - Server Settings

Hello dustinbrooks,

May I ask what are the lines you set setrequestheader for the xmlhttp (or similarly named) object? ie the lines

     xmlhttp.setrequestheader ???,??? <<---

regards - tsuji

RE: MSXML (XMLHTTP) Object - Server Settings

(OP)
Response.Buffer = True
Dim objXMLHTTP, xml, item, strpost

Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
        
xml.Open "POST", "****://gnet/assetprotection/frm_investigationreport_verify.asp",false

xml.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"

xml.Send strPostInfo
        
Response.Write xml.responseText
        
        
        
Set xml = Nothing

RE: MSXML (XMLHTTP) Object - Server Settings

(OP)
Well does anyone at least know of any specific settings that have to be on the web server in order to use XMLHTTP?

RE: MSXML (XMLHTTP) Object - Server Settings

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close