Click here to Skip to main content
15,914,452 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 !
Posted

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900