【问题标题】:Wget: http request sent, awaiting response.... 400 bad requestwget:http请求已发送,等待响应.... 400 bad request
【发布时间】:2018-04-06 19:40:34
【问题描述】:

我试图使用 wget 从文本文件中下载文件列表并将它们保存在一个文件夹中(这里“游戏”是文件夹名称),之前它工作正常但突然停止工作意味着 wget 没有下载给定列表中的任何文件。

命令:

wget --no-check-certificate -E -H -k -K -p -e robots=off -Pgame \ -i ./list.txt

list.txt 的内容

http://html5.gamedistribution.com/9c9aa954aa8a4b838958d10656677a16/images/menu_parlante-sheet0.png
http://html5.gamedistribution.com/9c9aa954aa8a4b838958d10656677a16/images/btnpausa-sheet0.png
http://html5.gamedistribution.com/9c9aa954aa8a4b838958d10656677a16/images/btnpausa-sheet1.png
http://html5.gamedistribution.com/9c9aa954aa8a4b838958d10656677a16/images/bgscoreui-sheet0.png
http://html5.gamedistribution.com/9c9aa954aa8a4b838958d10656677a16/images/btnback-sheet0.png
http://html5.gamedistribution.com/9c9aa954aa8a4b838958d10656677a16/images/btnback-sheet1.png
http://html5.gamedistribution.com/9c9aa954aa8a4b838958d10656677a16/images/bgcredits-sheet0.png
http://html5.gamedistribution.com/9c9aa954aa8a4b838958d10656677a16/images/titulo-sheet0.png

如果列表仅包含 1 行/文件地址/路径,则 wget 下载文件,如果它由多行 url 组成,则其给出错误为 "http request sent, waitinging response.... 400 bad request "

【问题讨论】:

  • 为什么其他应用程序会导致这个错误我不知道,昨天我安装了几个应用程序,现在删除它们后一切正常,感谢您的时间和回复

标签: wget bad-request


【解决方案1】:

这对我有用(没有反斜杠),但前四个链接返回 404 响应:

wget --no-check-certificate -E -H -k -K -p -e robots=off -Pgame  -i ./list.txt

【讨论】:

  • 没有仍然相同的错误正在解决 html5.gamedistribution.com (html5.gamedistribution.com)... 104.25.172.105, 104.25.171.105 正在连接到 html5.gamedistribution.com (html5.gamedistribution.com)| 104.25.172.105|:80... 已连接。已发送 HTTP 请求,等待响应... 400 错误请求 2018-04-07 01:55:35 错误 400:错误请求。在 0 秒内转换了 0 个文件。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2016-05-18
  • 2012-01-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多