In my application, I send the xml file to the server, but sometimes the server sends back 302 and then redirects.
However, after redirecting, the method becomes GET, not POST, and my data in the XML file cannot be delivered to the server.
And finally, the status code I received is 404.
Is there a way to handle the redirect yourself? Can I do something when a redirect occurs?
Can anybody help? thanks.
source
share