Ricky11
asked on
What is wrong with this http post script
All i get as a response is ?????????????????????????? ???????? a whole bunch of question marks
according to my pathetic understanding of this, to get the reply from the server i use
ResultBytes = XMLHTTP.responseBody
response.write ResultBytes
but all i get is the question marks from the fedex server.
<%
dim xmlhttp
set xmlhttp = server.Createobject("MSXML 2.ServerXM LHTTP")
xmlhttp.Open "POST","https://gatewaybeta.fedex.com:443/GatewayDC",false
set xmlDoc = Server.CreateObject("Msxml 2.DOMDocum ent")
xmlDoc.async = false
xmlDoc.load("C:\websites\b jcwye\fede x\fcon.xml ")
XMLHTTP.setRequestHeader "Referer","ABC LTD."
XMLHTTP.setRequestHeader "Host", "gatewaybeta.fedex.com:443 "
XMLHTTP.setRequestHeader "Accept","image/gif, image/jpeg, image/pjpeg,text/plain, text/html, */*"
XMLHTTP.setRequestHeader "Content-Type","image/gif"
XMLHTTP.setRequestHeader "Content-Length", Len(xmldoc.xml)
xmlhttp.send xmldoc.xml
ResultBytes = XMLHTTP.responseBody
response.write ResultBytes
Set xmlhttp = nothing
%>
according to my pathetic understanding of this, to get the reply from the server i use
ResultBytes = XMLHTTP.responseBody
response.write ResultBytes
but all i get is the question marks from the fedex server.
<%
dim xmlhttp
set xmlhttp = server.Createobject("MSXML
xmlhttp.Open "POST","https://gatewaybeta.fedex.com:443/GatewayDC",false
set xmlDoc = Server.CreateObject("Msxml
xmlDoc.async = false
xmlDoc.load("C:\websites\b
XMLHTTP.setRequestHeader "Referer","ABC LTD."
XMLHTTP.setRequestHeader "Host", "gatewaybeta.fedex.com:443
XMLHTTP.setRequestHeader "Accept","image/gif, image/jpeg, image/pjpeg,text/plain, text/html, */*"
XMLHTTP.setRequestHeader "Content-Type","image/gif"
XMLHTTP.setRequestHeader "Content-Length", Len(xmldoc.xml)
xmlhttp.send xmldoc.xml
ResultBytes = XMLHTTP.responseBody
response.write ResultBytes
Set xmlhttp = nothing
%>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
My ASP isn't that great, but could it be that the respnse is in unicode?
-r-
-r-
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
tried everthing... talking to fedex now... still doesn't work
anyway will close this...
anyway will close this...
ASKER
this to be exact
"
?????????•????????????????
"