Our firewall group just changed the proxy they use for ftp.  As a result, a
problem with wget 1.8.2 surfaced.  When I issue this command:
wget -N ftp://ftp.slackware.com/pub/slackware/slackware-9.0/ChangeLog.txt
the results I get depend on whether ChangeLog.txt exists in the current
working directory or not.  If the file _does_ exist, I get a 404 error.  If
it does _not_ exist, the file is retrieved.  I re-ran both of the commands
with --debug, and the difference seems to be that if the file exists, wget
is issuing a "HEAD" command for the file, which fails.  If it does not
exist, it issues a "GET" command, which works.  Is this a problem with wget,
or my FTP proxy server?


Mark Post


$ wget -N ftp://ftp.slackware.com/pub/slackware/slackware-9.0/ChangeLog.txt
--debug
DEBUG output created by Wget 1.8.2 on linux-gnu.

--17:40:45--
ftp://ftp.slackware.com/pub/slackware/slackware-9.0/ChangeLog.txt
           => `ChangeLog.txt'
Connecting to 192.85.50.83:81... connected.
Created socket 3.
Releasing 0x807f488 (new refcount 0).
Deleting unused 0x807f488.
---request begin---
GET ftp://ftp.slackware.com/pub/slackware/slackware-9.0/ChangeLog.txt
HTTP/1.0
User-Agent: Wget/1.8.2
Host: ftp.slackware.com
Accept: */*
Proxy-Authorization: Basic cnp0c2drOnAxbWFpbnRo

---request end---
Proxy request sent, awaiting response... HTTP/1.0 200 OK
Mime-Version: 1.0
Server: Application and Content Networking System Software 4.2.9
Content-Type: text/plain
Last-Modified: Tue Jun 17 19:42:07 2003
X-protocol: ftp
Date: Mon, 23 Jun 2003 21:40:48 GMT
Connection: Close


Length: unspecified [text/plain]

    [                         <=>                             ] 102,285
7.22K/s

Closing fd 3
17:41:02 (7.22 KB/s) - `ChangeLog.txt' saved [102285]

$ wget -N ftp://ftp.slackware.com/pub/slackware/slackware-9.0/ChangeLog.txt
--debug
DEBUG output created by Wget 1.8.2 on linux-gnu.

--17:41:08--
ftp://ftp.slackware.com/pub/slackware/slackware-9.0/ChangeLog.txt
           => `ChangeLog.txt'
Connecting to 192.85.50.83:81... connected.
Created socket 3.
Releasing 0x807f488 (new refcount 0).
Deleting unused 0x807f488.
---request begin---
HEAD ftp://ftp.slackware.com/pub/slackware/slackware-9.0/ChangeLog.txt
HTTP/1.0
User-Agent: Wget/1.8.2
Host: ftp.slackware.com
Accept: */*
Proxy-Authorization: Basic cnp0c2drOnAxbWFpbnRo

---request end---
Proxy request sent, awaiting response... HTTP/1.0 404 Not Found
Proxy-Connection: Close


Closing fd 3
17:41:11 ERROR 404: Not Found.

Reply via email to