Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache 表单提交后Safari返回302 HTTP状态代码_Apache_Http_Iframe_Safari_Http Headers - Fatal编程技术网

Apache 表单提交后Safari返回302 HTTP状态代码

Apache 表单提交后Safari返回302 HTTP状态代码,apache,http,iframe,safari,http-headers,Apache,Http,Iframe,Safari,Http Headers,我在Safari浏览器中使用POST方法提交表单时遇到问题。Safari浏览器中的表单提交返回后,状态代码302并重定向到获取方法。表单作为跨域页面上的iframe加载。在其他浏览器中,提交工作正常(状态代码为200) 请求头: Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Content-Type:application/x-www-form-urlencoded User-Agent:Moz

我在Safari浏览器中使用POST方法提交表单时遇到问题。Safari浏览器中的表单提交返回后,状态代码302并重定向到获取方法。表单作为跨域页面上的iframe加载。在其他浏览器中,提交工作正常(状态代码为200)

请求头:

 Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
 Content-Type:application/x-www-form-urlencoded
 User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2
响应标题

Date: Mon, 19 Aug 2013 13:47:56 GMT
p3p: CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
Connection: close
Content-Length: 0
Pragma: no-cache
Server: Apache/2.2.3 (CentOS)
Content-Type: text/plain; charset=UTF-8
Cache-Control: no-cache, no-store
Expires: Thu, 01 Jan 1970 00:00:00 GMT
表单数据

selectedDate:19.8.2013
selectedTimeString:19:00
有没有人遇到过这个问题


Web服务器:Apache Tomcat 5.5+Spring MVC

这是因为Safari在默认配置中阻止了第三方的cookie。解决方案是使用URL共享sessionId

selectedDate:19.8.2013
selectedTimeString:19:00