By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,375 Members | 547 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,375 IT Pros & Developers. It's quick & easy.

How Can Send The request through HTTP post as a value of a parameter ?

P: 1
I'm not that great with ASP , But I am trying to send The XML request through HTTP post as a value of a parameter
called Request.
Here the sample :

Expand|Select|Wrap|Line Numbers
  1. xmlString = “Request=<?xml version="1.0" encoding="UTF-8"
  2. standalone="yes"?><VerificationRequest>< ID>XYZ</ID><Key>jhutry</Key><UID>6276109478228235</UID
  3. ></VerificationRequest>”
  4.  
I Used Msxml2.ServerXMLHTTP.6.0 Method but I got the error “Invalid at the top level of the document” . When I omit the Parameter Request from xmlString, it’s worked But I need to send this Parameter through HTTP post for get the right answer.

Can someone Help me how can I make it done.
This is the code that I used ,
Expand|Select|Wrap|Line Numbers
  1. Set SendDoc = server.createobject("Microsoft.XMLDOM") 
  2. SendDoc.ValidateOnParse= True 
  3. SendDoc.LoadXML(xmlString)
  4. url = https://www.my test  site.com/checkID
  5. Set poster = Server.CreateObject("Msxml2.ServerXMLHTTP.6.0") 
  6.  
  7.  poster.open "POST", url, false
  8.  poster.setRequestHeader "CONTENT_TYPE", "text/xml" 
  9.  poster.send SendDoc
  10.  
  11.  Set docReceived  = server.createobject("Microsoft.XMLDOM") 
  12.  docReceived.ValidateOnParse= True 
  13.  docReceived.LoadXML(poster.responseTEXT)
Thanks,
Shahriar
Apr 28 '10 #1
Share this Question
Share on Google+
2 Replies

jhardman
Expert 2.5K+
P: 3,405
This is a very complex, difficult task for someone to try with ASP. I consider myself very handy with ASP, and I would never attempt this. Please explain why you are trying to do this, and I will try to give an alternative.

Jared
May 6 '10 #2

P: 1
Tell me how you solved this problem? pls.
Jun 1 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.