我试图下载此文件: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