Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 4th, 2005, 12:49 PM
Registered User
 
Join Date: Apr 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default MSXML2.ServerXMLHTTP help appreciated!!

In trying to log in at another server but for some reasons the script
doesn't work. After some hours i don't get it anymore. Can someone pleas help?

Thnx!

There must be something wrong in here:

'The XMLDOM object is created
set objXML = Server.CreateObject("Microsoft.XMLDOM")
objXML.async = false
'loads an xml file. Can use the .loadXML function to load from a string
objXML.load (server.MapPath("../store/xmldata/test229.xml"))

'create an XMLHTTP transport object
set xmlHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")

'open a post connection to a page
xmlhttp.open "POST", "http://user.test.net/index.php?mod=test-store&smod=orderIO&call=xml&test=true&code", false
xmlhttp.setRequestHeader "Man", POST & " " & http://user.test.netindex.php&" HTTP/1.1"
xmlHTTP.setRequestHeader "user-Agent", "Fl-Compagny"
xmlHTTP.setRequestHeader "Cookie", pCkey&"="&Server.UrlEncode(pCVal)
xmlHTTP.setRequestHeader "AUTHORIZATION: Basic", (base64Encode(strUser&":"&strPassword))
xmlHTTP.setRequestHeader "Local_User", "user.user.net"
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlhttp.setRequestHeader "content-Length", len("mod=test-store&smod=orderIO&call=xml&test=true&code")

'send the XML to the page
xmlhttp.send objXML.xml






Similar Threads
Thread Thread Starter Forum Replies Last Post
MSXML2.ServerXMLHTTP & https prakharbirla Classic ASP XML 0 October 17th, 2006 10:13 AM
MSXML2.ServerXMLHTTP & https prakharbirla Classic ASP Components 0 October 17th, 2006 10:11 AM
Reading a null value using MSXML2.ServerXMLHTTP lian_a Classic ASP XML 1 August 1st, 2006 05:45 PM
please help it would be appreciated ELHEK J2EE 0 May 27th, 2006 04:46 AM
Subquery. Any help would be appreciated. rriis SQL Language 3 October 3rd, 2005 12:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.