3

What causes Firefox to follow a POST request with a GET request when submitting a form via the POST method? The GET method is sent to the same url as the POST method but without the request parameters.

If you change the form method to GET, it will result in two identical GET requests.

4

3 回答 3

3

This is a bug in Firefox 3. This happens when the response to the POST contains an image tag with an empty source attribute. eg <img src=""/>

于 2008-09-18T19:03:38.883 回答
2

The URL POSTed to might be returning a Redirect -- that would cause a GET. This is commonly done so that the page can be refreshed without reposting.

于 2008-09-18T19:06:44.803 回答
0

Probably there is some javascript involved. The form is submitted as a result of an onclick event in an anchor with: href="..." onclick="..form.submit()"

于 2008-09-18T19:03:09.490 回答