什么原因导致Firefox通过POST方法提交表单后发出GET请求? [英] What causes Firefox to make a GET request after submitting a form via the POST method?

查看:110
本文介绍了什么原因导致Firefox通过POST方法提交表单后发出GET请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么原因导致Firefox在通过POST方法提交表单时,通过GET请求来执行POST请求? GET方法被发送到与POST方法相同的url,但没有请求参数。

如果将表单方法更改为GET,则会导致两个相同的GET请求。

解决方案

这是Firefox 3中的一个错误。当POST的响应包含空的图像标记来源属性。例如< img src =/>


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.

解决方案

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=""/>

这篇关于什么原因导致Firefox通过POST方法提交表单后发出GET请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆