我正在尝试下载此文件: http: //www.macupdate.com/download/49646/privatus.dmg
它给了我 302 http 代码,所以,我得到 Location Header 并通过一个新地址: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>
我尝试将 Accept 标头设置为 Content-Type 并将 Accept-Date 设置为 Date 但它没有帮助。返回码始终为 406。但浏览器可以下载此文件。那么,如何省略这个错误并下载文件呢?