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

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
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

XMLHTTP.setRequestHeader "Content-Type","image/gif"
xmlhttp.setRequestHeader "Content-Type","text/xml"


Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ricky11Author Commented:
same response.....

this to be exact

My ASP isn't that great, but could it be that the respnse is in unicode?

Geert BormansInformation ArchitectCommented:
Hi Ricky11,
>     ResultBytes = XMLHTTP.responseBody

try ResultBytes = XMLHTTP.responseXML
and threat it as text

my 2cts

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

anyway will close this...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.