Wget 503 不可用错误
Wget 503 unavailable error
$ wget www.amazon.com
Resolving www.amazon.com... 205.251.242.54
Connecting to www.amazon.com|205.251.242.54|:80... connected.
HTTP request sent, awaiting response... 503 Service Unavailable
2015-10-12 23:27:24 ERROR 503: Service Unavailable.
我试图在 URL 上发出 wget
并收到此错误。我需要存储 HTML 文件,我希望 wget 可以工作:(
我尝试使用 --no-proxy
选项,但没有用。
我可以毫无问题地发出 wget http://www.amazon.com
。
我的猜测是你在报废了一点点之后被亚马逊屏蔽了...
503 服务不可用
The server is currently unable to handle the request due to a
temporary overloading or maintenance of the server. The implication is
that this is a temporary condition which will be alleviated after some
delay. If known, the length of the delay MAY be indicated in a
Retry-After header. If no Retry-After is given, the client SHOULD
handle the response as it would for a 500 response.
Note: The existence of the 503 status code does not imply that a
server must use it when becoming overloaded. Some servers may wish
to simply refuse the connection.
问题是亚马逊防火墙阻止了未设置或不正确的用户代理的连接。
您可以尝试将用户代理设置为 wget 并使用以下命令获取 amazon(请注意,如果此用户代理无效,您可能需要更改有效的用户代理):
wget -U "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36" https://amazon.com
$ wget www.amazon.com
Resolving www.amazon.com... 205.251.242.54
Connecting to www.amazon.com|205.251.242.54|:80... connected.
HTTP request sent, awaiting response... 503 Service Unavailable
2015-10-12 23:27:24 ERROR 503: Service Unavailable.
我试图在 URL 上发出 wget
并收到此错误。我需要存储 HTML 文件,我希望 wget 可以工作:(
我尝试使用 --no-proxy
选项,但没有用。
我可以毫无问题地发出 wget http://www.amazon.com
。
我的猜测是你在报废了一点点之后被亚马逊屏蔽了...
503 服务不可用
The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay MAY be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.
Note: The existence of the 503 status code does not imply that a server must use it when becoming overloaded. Some servers may wish to simply refuse the connection.
问题是亚马逊防火墙阻止了未设置或不正确的用户代理的连接。
您可以尝试将用户代理设置为 wget 并使用以下命令获取 amazon(请注意,如果此用户代理无效,您可能需要更改有效的用户代理):
wget -U "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36" https://amazon.com