Jump to content

Content-Type problem


bairdb

Recommended Posts

I am working with FedEx's FSM Api. Basically I have set up an http request with ASP, it sends the content I need fine and it will return data if I use responseText. My problem is that if I try to use responseXML, it won't let me access the returned xml with xmlDom because FedEx's server is retruning their data with a content type of image/gif. Is there any way with asp to get around this, say change the content type of the returned data myself?

Link to comment
Share on other sites

The way I got around this in ASP.NET (not classic ASP) was to have the client send the request to a page on my server. Then, on that page, the server would send the request to the other server (FedEx in your case) and get the response back. I would then capture all the text in the response from the other server. Finally, I would set the response from my server to the client as "text/xml" and write all the text to the response.I hope this helps.

Link to comment
Share on other sites

  • 2 weeks later...

did you try WinHTTP?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...