简体   繁体   English

仅在萤火虫上出现406错误

[英]406 error on firebug only

Im using a script from this guy 我正在使用这个人的脚本

A. Valums http://valums.com/ajax-upload/ A.Valums http://valums.com/ajax-upload/

Everything is fine until the file has finished uploading and i get a 406 error on the firebug(ONLY). 一切都很好,直到文件上传完成,并且在萤火虫上出现了406错误(仅)。 when i right click the link on firebug and open in new window, the file does exist and does what i expect it to do. 当我右键单击Firebug上的链接并在新窗口中打开时,该文件确实存在并且执行了我期望的操作。

the page on firebug says 萤火虫的页面说

Not Acceptable

An appropriate representation of the requested resource upload.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

but when i see the page on a new tab it works fine and returns the right thing, that script on A. Valums has ajax requests btw 但是,当我在新选项卡上看到页面时,它可以正常工作并返回正确的内容,A。Valums上的脚本具有ajax请求btw

UPDATE 更新

Host            www.example.com
User-Agent      Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Accept          text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language en-gb,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive      115
Connection      keep-alive
Content-Type    application/octet-stream
Referer         http://www.example.com
Content-Length  192378
Cookie

Look at the HTTP headers. 查看HTTP标头。 Your JavaScript is likely adding an Accept header that the server thinks it doesn't have a suitable type of data to respond with. 您的JavaScript可能会添加一个Accept头,服务器认为该头没有合适的数据类型来响应。

这是服务器错误。需要禁用名为“ mod_security”的东西,我不知道这是什么,但是如果您遇到问题,请询问您的托管服务提供商,他们应该知道这件事:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM