Link to home
Start Free TrialLog in
Avatar of Ricky11
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("MSXML2.ServerXMLHTTP")
     xmlhttp.Open "POST","https://gatewaybeta.fedex.com:443/GatewayDC",false
 
  set xmlDoc = Server.CreateObject("Msxml2.DOMDocument")
xmlDoc.async = false
xmlDoc.load("C:\websites\bjcwye\fedex\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
%>
ASKER CERTIFIED SOLUTION
Avatar of Roonaan
Roonaan
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ricky11
Ricky11

ASKER

same response.....

this to be exact

"
?????????•??????????????????????????????????????????????•???????????????????????????=????????????????????????????????????????????????????????????????????4???????????????????????????????>
"
My ASP isn't that great, but could it be that the respnse is in unicode?

-r-
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ricky11

ASKER

tried everthing... talking to fedex now... still doesn't work

anyway will close this...