aspose file tools*
The moose likes Servlets and the fly likes Issue with IE 7.0 browser? Unexpected GET request after POST request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Issue with IE 7.0 browser? Unexpected GET request after POST request" Watch "Issue with IE 7.0 browser? Unexpected GET request after POST request" New topic
Author

Issue with IE 7.0 browser? Unexpected GET request after POST request

Mike Thomson
Ranch Hand

Joined: Nov 07, 2007
Posts: 115
I donot know where to post this issue in this forum. Please help to move it to the more appropriate place. Thanks.

Issue:

I have an ordinary web application which is running successfully for years without any issues. Suddenly we are facing the issue intermittely. On our investigation we came to know that users accessing with IE 7.0 browsers only gettting these errors and < IE 6.0 are working fine.
We can able to replicate the same issue in IE 7.0. So we have came to the conclusion some comptability issues with browser. But the user wants to use it in IE 7.0.
On our further investigation, We have noticed that in IE 7.0 browser after the POST request, unexpected and automaticallty another GET request is hitting the server is the root cause. But not for all the POST request it's coming..only for some of the POST operations after receiving the response and automatic GET request is trigerring.
Please help if any one has encountered this issue. Please help to advice on it. thanks.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

What resource is the GET request requesting? Is it the same as the POST?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Anirvan Majumdar
Ranch Hand

Joined: Feb 22, 2005
Posts: 261
Also, how is the call from the particular page made to server?
Some instances from my experience I recall wherein two server requests were occurring are -
> The HTML form is submitted using incorrect JavaScript> A JavaScript validation and page submission logic is associated with a submit button's onclick
Somehow in IE6 and other browsers as soon as one call is issued, the next was not made. The same was not true for IE7.
Mike Thomson
Ranch Hand

Joined: Nov 07, 2007
Posts: 115

What resource is the GET request requesting? Is it the same as the POST?


For example, below is the POST request with data in the body:
POST
name-value
empId-1001
empName-Mike

followed by
GET (no data/query string).
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Anirvan, in your example there are two submits written into the page, one fired by JavaScript the other by the submit input. I would expect two submits unless the browser does somethign clever to spot they are the same. However in theis instance both would have the same request type, not one post and one get.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61010
    
  65

Repeat: is the GET to the same URL as the POST?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issue with IE 7.0 browser? Unexpected GET request after POST request