I have the following codes in an asp file. This page can receive the XML string send from client.
=============== =============== =============== =====
Dim objReceive
Set objReceive = Server.CreateOb ject("Microsoft .XMLDOM")
objReceive.asyn c=false
On Error Resume Next
objReceive.load (Request)
if objReceive.xml <> "" then
Dim objWinHttp
Dim strHTML
Set objWinHttp = Server.CreateOb ject("WinHttp.W inHttpRequest.5 ")
'Set objWinHttp = Server.CreateOb ject("Msxml2.Se rverXMLHTTP")
objWinHttp.Open "POST", "http://localhost/bank/Trx.asp", false
objWinHttp.Send objReceive.xml
Response.Write( "Status: " & objWinHttp.Stat us & " " & objWinHttp.Stat usText)
strHTML = objWinHttp.Resp onseText
Set objWinHttp = Nothing
else
Response.Write( "You have reached a secure site." )
end if
=============== =============== =============== ======
objReceive.xml ===> contains the XML string from client
After receiving the XML string, the string need to be sent to another page, http://localhost/bank/Trx.asp.
objWinHttp.Open "POST", "http://localhost/bank/Trx.asp", false
But I cannot get the XML string in the Trx.asp, anything wrong with my code?
The 3rd parametere should I use false or true?
It's a simple code, but I still cannot figure out what is wrong. Pls comment. Thanks a lot.