2011-02-10 103 views
0

林的罚款。当我右键单击萤火虫上的链接并在新窗口中打开时,该文件确实存在,并执行我期望的操作。406错误的萤火虫只

上萤火页面上显示

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.

,但是当我看到一个新的选项卡上的页面,它工作正常,并返回正确的事情,在A. Valums该脚本BTW具有Ajax请求

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

回答

0

这是一个被称为“mod_security的”服务器error.something需要被禁用,我不知道它是什么,但请主机供应商,他们应该知道,如果你遇到的问题:)

0

看看HTTP头。您的JavaScript很可能会添加一个Accept标头,服务器认为它没有合适的数据类型来响应。

+0

`XHR .setRequestHeader(“X-Requested-With”,“XMLHttpRequest”); xhr.setRequestHeader(“X-File-Name”,encodeURIComponent(name)); xhr.setRequestHeader(“Content-Type”,“application/octet-stream”);`这就是它在javascript上的标题 – Val 2011-02-10 14:47:10

+0

看看发送的实际标题,而不仅仅是你用JavaScript指定的标题。 – Quentin 2011-02-10 14:48:29