cURL / Mailing Lists / curl-users / Single Mail

curl-users

Unable to curl to local urls

From: Paul Willis <willisweb_at_googlemail.com>
Date: Thu, 6 May 2010 12:15:50 +0100

Hi

I've installed curl 7.18.0 on Ubuntu 8.04.4 LTS. There's no problem hitting any external URL with commands such as 'curl http://www.google.com' but if I try any IP, or hostname on the actual server I eventually get a time out....

curl http://host.mydomain.com -v
* About to connect() to host.mydomain.com port 80 (#0)
* Trying 123.123.123.123... Connection timed out
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host

Same if I try to curl directly to the servers IP

curl http://123.123.123.123 -v
* About to connect() to 123.123.123.123 port 80 (#0)
* Trying 123.123.123.123... Connection timed out
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host

Both the real hostname and the real IP serve up a default page if accessed from another host so apache is up and running.

I'm not really sure where to look to solve this. Any clues?

Regards

Paul

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-05-06