wget 连接被对等方重置 [英] wget connection reset by peer

查看:41
本文介绍了wget 连接被对等方重置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用 wget 从我们的网络服务器访问 www.indeed.com,但它引发了对等连接重置"错误.

I try to access www.indeed.com from our web server by using wget but it raises "Connection reset by peer" error.

wget www.indeed.com

--2013-02-05 03:03:12--  (try: 3)  http://www.indeed.com/
Connecting to www.indeed.com|208.43.224.140|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.

它之前可以正常工作,因为我使用他们的 API 有一段时间了,但现在我什至无法访问他们的公共网站.

It was working before cause I'm using their API for a while but now I'm not even reach their public website.

可能是什么问题?确实可以将服务器的 IP 添加到他们的黑名单中,还是这与我的防火墙等有关?

What could it be the problem? Could Indeed add to their blacklist the server's IP or is this related with my firewall etc.?

有没有办法调试/跟踪问题出在哪里?

Is there a way to debug/trace where the problem is?

推荐答案

你应该像下面的例子那样使用用户代理

You should use with user-agent like following sample

wget "http://www.indeed.com/" --user-agent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"

这篇关于wget 连接被对等方重置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆