In My App , I POST a xml file to the server , but sometimes the server will send back 302 and then redirect .
However , after the redirecting the method become GET , not POST, and my data in xml file can’t deliver to server.
And finally the status code I got is 404.
Is there some way to process the redirect by myself ? Can I do something when the redirecting is happening?
Anyone can help? THX.!
From RFC 2616:
Are you sure your server isn’t using the ‘POST, redirect, GET‘ idiom?
You can disable automatic following of redirects in Apache HTTP client. For example: