Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Redirect request on IE from a POST request (302/303) is also having the request method as POST and contains previous request's body

$
0
0
Hi,

I am seeing a very strange behavior on IE (8,9,10) versions. Please have a look:

1. I open my website http://www.xyz.com (A GET request).

2. I login on it using my credentials. The call is a POST call as

POST https://www.xyz.com/view/LoginController

having user's credentials in the request body

3. The LoginController verifies the user's credentials and then redirects the user to the website in logged in state.

4. This request contains the request body of the previous request and had the request method asPOST in IE.

However in the browsers other than IE the behavior is different. The redirected request has the request method asGET and doesn't contain anything in the request body from previous request.

Additional observation is that this post call in IE contains duplicate headers. The headers of the current request as well as the headers of previous request.

I have validated the same behavior on face book as well. Please have a look below:

URL Method Result Type Received Taken Initiator Wait‎‎ Start‎‎ Request‎‎ Response‎‎ Cache read‎‎ Gap‎‎
/login.php?login_attempt=1 POST 302 text/html 1.84 KB 1.60 s click 0 0 0 1607 0 23852

http://www.facebook.com/ POST 200 text/html 251.83 KB 7.80 s click 1607 15 0 7067 0 16052

Can someone please help on it if it can be corrected somehow?

Regards,
Amit

Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>