logo       


Re: wget-1.9.1 Tries to Connect to localhost: msg#00084

Subject: Re: wget-1.9.1 Tries to Connect to localhost
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



Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe