bairdb Posted February 5, 2007 Share Posted February 5, 2007 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 More sharing options...
jesh Posted February 5, 2007 Share Posted February 5, 2007 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 More sharing options...
packrat Posted February 14, 2007 Share Posted February 14, 2007 did you try WinHTTP? Link to comment Share on other sites More sharing options...
bairdb Posted February 21, 2007 Author Share Posted February 21, 2007 I got this working by adding a second xmlHTTP request to handle the response from the FedEx server and send it as content-type xml. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now