Linux curl命令问题 [英] Linux curl command problem

查看:108
本文介绍了Linux curl命令问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用linux debian服务器
当我在命令表单上键入 curl http://google.com
我将收到错误返回 curl:(28)connect()超时!

但是当我键入 ping google.com
它恢复正常
来自muc03s02-in-f23.1e100.net(173.194.35.183)中的64个字节:icmp_req = 1 ttl = 54 time = 13.3 ms
来自muc03s02-in-f23.1e100.net(173.194.35.183)中的64个字节:icmp_req = 2 ttl = 54 time = 13.2 ms

那么,有什么问题呢?以及我该如何解决?

谢谢!

Hi all,

i am using linux debian server
when i type : curl http://google.com on my command form
i will get an error return curl: (28) connect() timed out!

but when i type ping google.com
it repply normaly
64 bytes from muc03s02-in-f23.1e100.net (173.194.35.183): icmp_req=1 ttl=54 time=13.3 ms
64 bytes from muc03s02-in-f23.1e100.net (173.194.35.183): icmp_req=2 ttl=54 time=13.2 ms

so , what is problem ? and how can i fix it ?

thank !

推荐答案

尝试以下方法:
Try the following :
curl http://www.google.com

curl -v http://www.google.com


还要确保您不在计算机上使用代理.


Also make sure you are not using a proxy on your machine.


这篇关于Linux curl命令问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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