cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl can't access localhost

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 21 Jul 2009 22:34:00 +0200 (CEST)

On Tue, 21 Jul 2009, Joel Verhagen wrote:

> I'm trying to get curl to load a page on a local apache server (i.e. curl
> http://localhost/test.php). the program hangs gives the following error:
>
> "curl: (7) couldn't connect to host"

It means curl couldn't connect to port 80 of the host that 'localhost'
resolves to.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-07-21