Date: Mon, 11 Nov 2013 14:17:37 +0000 From: RW <rwmaillists@googlemail.com> To: freebsd-questions@freebsd.org Subject: Re: freebsd-update: fetch or phttpget? Message-ID: <20131111141737.05813fed@gumby.homeunix.com> In-Reply-To: <CAKoxK%2B578cNgbhpwB5_oX3SSxdH6dh0gSwYbPf%2Bn3TAA8Xx0xw@mail.gmail.com> References: <CAKoxK%2B578cNgbhpwB5_oX3SSxdH6dh0gSwYbPf%2Bn3TAA8Xx0xw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 11 Nov 2013 14:18:08 +0100 Luca Ferrari wrote: > Hi all, > I noted that freebsd-update uses phttpget as main downloader except in > a point, where fetch(1) is used: > > fetch ${QUIETFLAG} http://${SERVERNAME}/${FETCHDIR}/latest.ssl > > Now, this causes problems with the authentication when behind a > proxy, since phttpget and fetch seem to use a different approach to > username/password authentication. In particular fetch handles an > http_proxy variable that includes username/password, while phttpget > does not. > What is the rationale behind the usage of two downloader within the > same script? phttpget is very basic, but does support http pipelining, so it's much faster downloading a lot of small files - in the script phttpget is always used with xargs. fetch is used for individual files, it has more features and better error reporting.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131111141737.05813fed>