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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shahriar2010
    New Member
    • Apr 2010
    • 1

    #1

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

    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 :

    Code:
    xmlString = “Request=<?xml version="1.0" encoding="UTF-8"
    standalone="yes"?><VerificationRequest>< ID>XYZ</ID><Key>jhutry</Key><UID>6276109478228235</UID
    ></VerificationRequest>”
    I Used Msxml2.ServerXM LHTTP.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 ,
    Code:
    Set SendDoc = server.createobject("Microsoft.XMLDOM") 
    SendDoc.ValidateOnParse= True 
    SendDoc.LoadXML(xmlString)
    url = [url]https://www.my[/url] test  site.com/checkID
    Set poster = Server.CreateObject("Msxml2.ServerXMLHTTP.6.0") 
    
     poster.open "POST", url, false
     poster.setRequestHeader "CONTENT_TYPE", "text/xml" 
     poster.send SendDoc
    
     Set docReceived  = server.createobject("Microsoft.XMLDOM") 
     docReceived.ValidateOnParse= True 
     docReceived.LoadXML(poster.responseTEXT)
    Thanks,
    Shahriar
    Last edited by Niheel; Jun 1 '10, 10:30 PM. Reason: added code tags
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    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

    Comment

    • karambol9
      New Member
      • Jun 2010
      • 1

      #3
      Tell me how you solved this problem? pls.

      Comment

      Working...