Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 May 2000 15:24:27 +0100
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        Dag-Erling Smorgrav <des@flood.ping.uio.no>
Cc:        arch@FreeBSD.org
Subject:   Re: fetch(1)
Message-ID:  <20000514152427.Q10128@strontium.scientia.demon.co.uk>
In-Reply-To: <xzpbt2djcj4.fsf@flood.ping.uio.no>
References:  <xzpbt2djcj4.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smorgrav wrote:

> I'm still waiting for comments about my libfetch-based fetch(1). Get
> the latest tarball from <URL:http://www.freebsd.org/~des/software/>.
> 
> (note that it needs -CURRENT's libfetch to work)

It seems that fetching an FTP url via an HTTP proxy server is now
broken.  Setting HTTP_PROXY=www-cache:8080 used to work for FTP too, but
it doesn't anymore.

ben@lithium:~$ export HTTP_PROXY=www-cache:8080        
ben@lithium:~$ ktrace fetch ftp://scientia.demon.co.uk/
libfetch: No error (250 Requested file action okay, completed)
libfetch: File is not available (550 File unavailable (e.g., file not found, no access))
ben@lithium:~$ kdump | grep GET
  4639 fetch    CALL  ioctl(0x1,TIOCGETA,0xbfbff238)
  4639 fetch    CALL  ioctl(0x1,TIOCGETA,0xbfbff548)

I don't see an HTTP GET request there.  This needs fixing before being
imported.

Also, a minor nit in the manual page for libfetch:

     The FTP and HTTP related functions use the HTTP_PROXY and FTP_PROXY envi-
     ronment variables, respectively, as the address of a proxy server to use
     for transferring files.

I think you want to swap around one pair of "FTP" and "HTTP" or it
implies FTP uses HTTP_PROXY and vice versa.

-- 
Ben Smithurst / ben@scientia.demon.co.uk / PGP: 0x99392F7D


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000514152427.Q10128>