On Tuesday 17 May 2005 01:56 am, Jim Peterson wrote:
>   Using Fedora Core 3, when I "wget http://www.studylight.org/";, it prints
> out:
>
> --02:52:30--  http://www.studylight.org/
>            => `index.html'
> Resolving www.studylight.org... 63.164.18.58
> Connecting to www.studylight.org[63.164.18.58]:80... connected.
> HTTP request sent, awaiting response... 302 Found
> Location: http://localhost/ [following]
> --02:52:30--  http://localhost/
>            => `index.html'
> Resolving localhost... 127.0.0.1
> Connecting to localhost[127.0.0.1]:80... failed: Connection refused.
>
>   Why is it trying to connect to localhost?  My browser can load the page,
> but if I manually "telnet www.studylight.org 80" and type "GET /", I get a
> page that tends to indicate a peculiar web server setting that returns the
> Apache test page.  Is this simply an indication of a poorly administered
> server, or is it a bug in wget?

it seems to be a problem with the server:

DEBUG output created by Wget 1.10-beta1+cvs-dev on linux-gnu.

--21:44:29--  http://www.studylight.org/
           => `index.html'
Resolving www.studylight.org... 63.164.18.58
Caching www.studylight.org => 63.164.18.58
Connecting to www.studylight.org|63.164.18.58|:80... connected.
Created socket 4.
Releasing 0x080835f8 (new refcount 1).

---request begin---
GET / HTTP/1.0
User-Agent: Wget/1.10-beta1+cvs-dev
Accept: */*
Host: www.studylight.org
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response... 
---response begin---
HTTP/1.1 302 Found
Date: Wed, 18 May 2005 02:44:29 GMT
Server: Apache/1.3.33 (Unix)  (Gentoo/Linux) mod_perl/1.27
Location: http://localhost/
          ^^^^^^^^^^^^^^^^^
Connection: close
Content-Type: text/html; charset=iso-8859-1

---response end---
302 Found
Location: http://localhost/ [following]
Closed fd 4
--21:44:30--  http://localhost/
           => `index.html'
Resolving localhost... 127.0.0.1
Caching localhost => 127.0.0.1
Connecting to localhost|127.0.0.1|:80... Closed fd 4
failed: Connection refused.
Releasing 0x08081370 (new refcount 1).


-- 
Aequam memento rebus in arduis servare mentem...

Mauro Tortonesi                          http://www.tortonesi.com

University of Ferrara - Dept. of Eng.    http://www.ing.unife.it
Institute of Human & Machine Cognition   http://www.ihmc.us
GNU Wget - HTTP/FTP file retrieval tool  http://www.gnu.org/software/wget
Deep Space 6 - IPv6 for Linux            http://www.deepspace6.net
Ferrara Linux User Group                 http://www.ferrara.linux.it

Reply via email to