cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: cant access URL on localhost?

From: Luke Salsich <luke.salsich_at_gmail.com>
Date: Mon, 14 Jul 2008 16:06:35 -0400

Thanks, Dan. that was it.

Luke Salsich

On Mon, Jul 14, 2008 at 12:33 PM, Dan Fandrich <dan_at_coneharvesters.com>
wrote:

> 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.html
>

-------------------------------------------------------------------
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 2008-07-14