HELP! set up paypal's pdt failed.
1.I tried to set pdt up and create pdt.asp by exsample code and test it with sandbox,but when return to my pdt page,it showed The system cannot locate the resource specified.
2.After the debug I focused on then line objHTTP.send query lead to the failure.
3.I find another paragraph of code of Microsoft.XMLHTTP using. And this codes works well.
What does this matter mean?What shall I do?
affixation A. the example code of pdt.asp
'Token of Sandbox
authToken ="foglWnvSxc5VTjGyi3o-yF7GTbaJpSQsdP6ZDU7h7moP2RJyWZn7ZgUokZe"
txToken = Request.Querystring("tx")
query = "cmd=_notify-synch&tx=" & txToken & "&at=" & authToken
set objHttp = Server.CreateObject("Microsoft.XMLHTTP")
' set objHttp = Server.CreateObject("Msxml2.ServerXMLHTTP")
objHttp.open "POST", "http://www.sandbox.paypal.com/cgi-bin/webscr", false
'This line can not pass
objHttp.Send query
sQuerystring = objHttp.responseText
affixation B. the well worked codes
Set Retrieval = CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "GET", url, False
.Send
GetURL = bytes2bstr(.responsebody)
'check the information , fail if less than 10k
if len(.responsebody)<100 then
response.write "Fail in getting remote file : <a href="&url&" target=_blank>"&url&"</a> "
response.end
end if
End With
|