curl-users
Re: cant access URL on localhost?
Date: Mon, 14 Jul 2008 09:33:06 -0700
On Mon, Jul 14, 2008 at 05:44:06AM -0400, Luke Salsich wrote:
> When I attempt to access a URL (both via command line and using PHP) located on
> the localhost I get a "curl: (7) couldn't connect to host" error. These same
> attempts from other servers work fine. Also, I can access URLs outside of the
> localhost just fine. Is there some setting I am missing with regards to Curl
> that I need to change that is restricting access to the localhost?
It sounds like the web browser is listening on the external IP address but
not localhost (127.0.0.1). Try using the same address that works when you
access the server from other hosts. "netstat -at" (assuming a *NIX host)
will show you which ports on which addresses are in the LISTEN state.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has moved ------------------------------------------------------------------- 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.htmlReceived on 2008-07-14