From owner-freebsd-bugs Sat Jul 26 12:32:22 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id MAA15439 for bugs-outgoing; Sat, 26 Jul 1997 12:32:22 -0700 (PDT) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA15434 for ; Sat, 26 Jul 1997 12:32:19 -0700 (PDT) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.8.5/8.8.5) id PAA23528; Sat, 26 Jul 1997 15:32:11 -0400 (EDT) Date: Sat, 26 Jul 1997 15:32:11 -0400 (EDT) From: Garrett Wollman Message-Id: <199707261932.PAA23528@khavrinen.lcs.mit.edu> To: =?iso-8859-1?Q?=C5ge_R=F8bekk?= Cc: freebsd-bugs@FreeBSD.ORG Subject: fetch doesn't work with ftp URLS and HTTP_PROXY set In-Reply-To: <19970726121259.13881@aage.priv.no> References: <19970726121259.13881@aage.priv.no> Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk < said: > 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. Ummm, the only thing the two code paths do differently is that the first passes a `Host:' header whereas the second does not. Are you suggesting that some proxies require FTP requests to have a Host header? Bizarre.... -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick