
使用 wget 下載映像時wget link
出現以下錯誤:
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: [following]
--2015-05-24 14:47:46-- http://stripovionline.com/AlanFord/0002_Suplji_zub/1.jpeg
Reusing existing connection to stripovionline.com:80.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: [following]
--2015-05-24 14:47:47-- http://stripovionline.com/AlanFord/0002_Suplji_zub/1.jpeg
Reusing existing connection to stripovionline.com:80.
20 次後,它終止並顯示訊息20 redirections exceeded.
我通常可以訪問該鏈接並手動下載圖像。
答案1
我無法使用瀏覽器下載該圖像,或出現「頁面未正確重定向」錯誤,因此這也可能是正確的wget
行為。我建議您嘗試下載其他圖像來確認。例如,http://cdn.sstatic.net/superuser/img/sprites.svg
對我來說開得很好。
如果您需要下載只能從特定頁面存取的文件,例如http://stripovionline.com/index.html
,您需要將該 URL 作為引用傳遞給 wget:
wget --referer="http://stripovionline.com/index.html" "http://stripovionline.com/AlanFord/0002_Suplji_zub/1.jpeg"