From owner-freebsd-bugs Sat Jul 26 03:13:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA23526 for bugs-outgoing; Sat, 26 Jul 1997 03:13:16 -0700 (PDT) Received: from aage.priv.no (birk04.studby.uio.no [129.240.214.13]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA23520 for ; Sat, 26 Jul 1997 03:13:11 -0700 (PDT) Received: (from aagero@localhost) by aage.priv.no (8.8.6/sendmail95) id MAA01588; Sat, 26 Jul 1997 12:12:59 +0200 (CEST) Message-ID: <19970726121259.13881@aage.priv.no> Date: Sat, 26 Jul 1997 12:12:59 +0200 From: =?iso-8859-1?Q?=C5ge_R=F8bekk?= To: freebsd-bugs@freebsd.org Subject: fetch doesn't work with ftp URLS and HTTP_PROXY set Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.79e X-OS: FreeBSD 3.0-CURRENT Sender: owner-freebsd-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk /usr/bin/fetch does not parse correctly the requesting URL when using HTTP_PROXY as a means for proxy-forwarding the request. http.c, line 246: if (strncmp(uri, "http://", 7) == 0) { should read if ((strncmp(uri, "http://", 7) == 0) || (strncmp("ftp://", 6) == 0)) { in order to work properly with ftp URLs. -aage