What makes Firefox make a GET request after submitting the form via the POST method?

What causes Firefox to execute 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, this will result in two identical GET requests.

+3
source share
3 answers

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

+3
source

POSTed URL that can return a redirect, resulting in a GET. This is usually done so that the page can be refreshed without resending.

+2
source

There may be some javascript. The form is submitted as a result of the onclick event anchored with: href = "..." onclick = ".. form.submit ()"

0
source

Source: https://habr.com/ru/post/1697152/


All Articles