2011-02-10 102 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