我試圖下載此文件:http://www.macupdate.com/download/49646/privatus.dmg如何省略406 http錯誤?
它給了我302 HTTP代碼,這樣,我得到Location頭,並通過新的地址去:http://sweetpproductions.com/products/privatus/Privatus.dmg
但新的鏈接給了我406 HTTP代碼這個標題:
"Date" "Mon, 27 Oct 2014 14:24:32 GMT"
"Content-Type" "text/html; charset=iso-8859-1"
"Transfer-Encoding" "chunked"
"Connection" "keep-alive"
"Set-Cookie" "__cfduid=da76029364799a83265f7f215bbddef491414419872061; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.sweetpproductions.com; HttpOnly"
"Server" "cloudflare-nginx"
"CF-RAY" "17ff8ec8633f0893-FRA"
,並與身體:
<head><title>Not Acceptable!</title></head><body><h1>Not Acceptable!</h1><p>An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.</p></body></html>
我試圖設置接受頭Conten t型和接受日期,但它沒有幫助。返回的代碼總是406.但瀏覽器可以下載這個文件。那麼,如何省略這個錯誤並下載文件?
您可以顯示您發送的確切標題,特別是: Accept頭? – 2014-10-27 15:43:37
接受:text/html; charset = iso-8859-1 – Robotex 2014-10-27 20:47:35