Hello all, I'm trying to POST an XML file to Amazon.com. If there is an error in your XML file they report a 500 error but also pass back an XML file describing the error. However when I make the request responseArray = myWebClient.UploadData(URI, "POST", bytAuth)
That line reports the 500 error and stops the code from executing. Any ideas how I can continue on and read the XML out of this? (I am able to make a successful POST, but now and trying to do another post with a different piece of XML so its not the tranmission
code, it in the XML)
You need to URLEncode the XML string data, and then on the server side that recieves the post, it must URLDecode the XML back in to valid XML. Do this using either the HttpServerUtility class, or the HttpUtility class.
MorganE
Member
15 Points
3 Posts
How to Handle a 500 Error on a WebClient UploadData?
Apr 08, 2004 10:38 PM|LINK
chapel21
Contributor
2485 Points
499 Posts
Re: How to Handle a 500 Error on a WebClient UploadData?
Apr 09, 2004 02:08 PM|LINK