手机上传之出现:411 => 'Length Required' 问题...

jackxiang 2013-4-3 11:26 | |
用Post方式在手机上传,PHP做接收文件,出现了411:

关于411,看是不是你们发送时的问题呢?
在使用jquery 的ajax提交时,在FireFox中会出现411 Length Required的返回错误,而IE6却没问题,郁闷好久,今天搜到一篇文章终于解决。
http://www.cnblogs.com/RChen/archive/2007/11/22/968992.html
原来是 dataType:'text',   data:'',需要指定,晕。

E文解释:
HTTP Error 411 - Length Required:
411 Status Code Explained
The 411 status code occurs when the server refuses to process a request because the content length was not specified.
Why it occurs
Your client did not define the length of the requested content in the request header. The server will not accept the request without a valid Content-Length header field.
Fixing 411 Error Code
The problem can only be resolved by examining what your client system is trying to do then discussing with your ISP why the Web server expects a 'Content-Length' specification. If you are monitor your website through 100pulse, we will intimate whenever you encounter 411 status code error through e-mail or Short message service.
http://100pulse.com/http-statuscode/411.jsp

具体问题,有待进一步分析,先备案在这儿...

作者:jackxiang@向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除
地址:https://jackxiang.com/post/6199/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!

评论列表
发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]