From owner-freebsd-arch Sun May 14 7:33:58 2000 Delivered-To: freebsd-arch@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id E2E2E37B649 for ; Sun, 14 May 2000 07:33:52 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.12 #1) id 12qzJk-00045a-00; Sun, 14 May 2000 15:24:28 +0100 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.12 #7) id 12qzJj-0002eq-00; Sun, 14 May 2000 15:24:27 +0100 Date: Sun, 14 May 2000 15:24:27 +0100 From: Ben Smithurst To: Dag-Erling Smorgrav Cc: arch@FreeBSD.org Subject: Re: fetch(1) Message-ID: <20000514152427.Q10128@strontium.scientia.demon.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dag-Erling Smorgrav wrote: > I'm still waiting for comments about my libfetch-based fetch(1). Get > the latest tarball from . > > (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