Date: Wed, 22 Apr 1998 20:30:02 -0700 (PDT) From: Dave Chapeskie <dchapes@ddm.on.ca> To: freebsd-bugs Subject: Re: bin/6371 Message-ID: <199804230330.UAA18165@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/6371; it has been noted by GNATS. From: Dave Chapeskie <dchapes@ddm.on.ca> To: Poul-Henning Kamp <phk@FreeBSD.ORG>, Garrett Wollman <wollman@khavrinen.lcs.mit.edu> Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/6371 Date: Wed, 22 Apr 1998 23:20:18 -0400 On Tue, 21 Apr 1998 at 23:25:27 -0700, Poul-Henning Kamp wrote: > Better patch is needed: > FTP_PROXY=somehost:someport should work The patch doesn't change the behaviour of non-null FTP_PROXY settings at all. > manual page should be updated True. The patch at the end of this message adds this paragraph: If FTP_PROXY is undefined the value of HTTP_PROXY is used for FTP transfers. If this is undesirable you can set FTP_PROXY to NULL and fetch will connect directly without using a proxy. By the way, I should mention that I submitted the patch because I've come across a few other people in the same situation as me. You'll note that my original submission suggested that there is likely a better solution. If you don't like this quick fix just leave the PR open and perhaps someone else will take the time to do it 'right'. On Wed, Apr 22, 1998 at 10:18:48AM -0400, Garrett Wollman wrote: > > Synopsis: fetch(1) uses HTTP_PROXY for ftp requests when FTP_PROXY > > undefined > > It was done this way intentionally. (The original `fetch' did it, > too, before I rewrote it to be more general.) My solution: > > fetch() { > (unset HTTP_PROXY; /usr/bin/fetch ${1+"$@"}) > } But then you you can't use fetch to get files via HTTP (at least not through the proxy). My 'solution' doesn't break anything for existing users it just adds a way for people to tell fetch they don't want FTP to be proxied. Currently there is no way to do that. At least no way that I know of, if anyone else knows better... Cheers, -- Dave Chapeskie <dchapes@ddm.on.ca>, DDM Consulting =================================================================== RCS file: /cvs/FreeBSD/src/usr.bin/fetch/fetch.1,v retrieving revision 1.9.2.6 diff -u -u -r1.9.2.6 fetch.1 --- fetch.1 1997/09/15 08:07:03 1.9.2.6 +++ fetch.1 1998/04/23 03:09:45 @@ -163,6 +163,21 @@ .Tn HTTP .Dq Li GET request. HTTP proxy authentication is not yet implemented. +.Pp +If +.Ev FTP_PROXY +is undefined the value of +.Ev HTTP_PROXY +is used for +.Tn FTP +transfers. +If this is undesirable you can set +.Ev FTP_PROXY +to +.Tn NULL +and +.Nm fetch +will connect directly without using a proxy. .Sh HTTP AUTHENTICATION The .Tn HTTP To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804230330.UAA18165>