其他 请教个问题: 为什么 wget 返回'416 Requested Range Not Satisfiable' 如下

sitoto · 2017年04月07日 · 最后由 reyesyang 回复于 2017年04月08日 · 10839 次阅读
> wget 'https://www.summitracing.com/'

--2017-04-07 17:12:00--  https://www.summitracing.com/

Resolving www.summitracing.com (www.summitracing.com)... 198.7.31.87

Connecting to www.summitracing.com (www.summitracing.com)|198.7.31.87|:443... connected.

HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable


    The file is already fully retrieved; nothing to do.

416 Requested Range Not Satisfiable

可能是服务器端对请求的 Header 做了一些判断,下面的 cURL 是可以正常访问的

curl 'https://www.summitracing.com/' -H 'Accept-Encoding: gzip, deflate, sdch, br' -H 'Accept-Language: zh-CN,zh;q=0.8' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/56.0.2924.76 Chrome/56.0.2924.76 Safari/537.36' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Cache-Control: max-age=0' -H 'Cookie: ASP.NET_SessionId=4lhdcploqsdv3drj5hldwben; sresid=472f2ed4-e8ea-4c3b-95c8-576e8bf7d38f; user=EstimatorCountry%3d%26EstimatorProvince%3d%26EstimatorZip%3d%26EstimatorCity%3d%26RetailPickupSelected%3dTrue%26SelectedRetailLocation%3dOhio%26IsInternationalUser%3dTrue%26HideInternationalBanner%3dFalse%26IAge%3d4%2f7%2f2017%7c9%3a10%7cPM%26SelectedShippingMethod%3d%26SelectedCurrency%3dUSD; srem=sre; D_SID=221.223.104.161:xMe6OZpkl1Mna525om5S6q+a3xhyIGt6IxtwRzL7sdc; cmTPSet=Y; CoreID6=39053448770214916138233&ci=51970000|SRE; _ga=GA1.2.1237519802.1491613821; _gat=1; 51970000|SRE_clogin=v=1&l=1491613823&e=1491616398660; D_PID=8FAAEB31-5110-3491-80DF-81C3207C174B; D_IID=D2EE5BBC-4B1E-3653-9D00-86D9278B4828; D_UID=2F6571CA-9AAE-3607-A217-E40B16BFE80E; D_HID=ou1W0Lnoq8l3qYZESw041UCP/aqdw4lOWAnkTSZKpsk; D_ZID=5A854C68-2120-3F68-805C-4E91348CA396; D_ZUID=0D4C6978-81C4-3669-80A1-2F1C047BB668' -H 'Connection: keep-alive' --compressed
需要 登录 后方可回复, 如果你还没有账号请 注册新账号