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

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

问题描述

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

  wget www.indeed.com 

--2013-02-05 03:03:12--(try:3)http://www.indeed.com/
连接到www.indeed.com | 208.43.224.140 |:80 ...已连接。
HTTP请求发送,等待响应...在标头中读取错误(由对等连接复位)。
重试。

这是工作之前的原因我使用他们的API一段时间,但现在我不是到达他们的公共网站。



这是什么问题?可以添加到他们的黑名单服务器的IP或这是与我的防火墙等相关?



有没有办法调试/跟踪问题是什么?

解决方案

您应该像以下示例一样使用user-agent



  wgethttp://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
/ pre>

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.

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

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天全站免登陆