1.\"- 2.\" Copyright (c) 2015 Xin LI <delphij@FreeBSD.org> 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. 9.\" 2. Redistributions in binary form must reproduce the above copyright 10.\" notice, this list of conditions and the following disclaimer in the 11.\" documentation and/or other materials provided with the distribution. 12.\" 13.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23.\" SUCH DAMAGE. 24.\" 25.Dd January 3, 2015 26.Dt PHTTPGET 8 27.Os 28.Sh NAME 29.Nm phttpget 30.Nd retrieve multiple files via pipelined HTTP 31.Sh SYNOPSIS 32.Nm 33.Ar server 34.Ar file ... 35.Sh DESCRIPTION 36The 37.Nm 38utility is a minimalist pipelined HTTP client, 39which is used to retrieve multiple 40.Ar file Ns s 41from one 42.Ar server , 43and saves the downloaded files in the current working directory, 44using the last portion of their download path as file names. 45.Pp 46By making several "in flight" HTTP requests, 47it can dramatically increase performance when a large number of 48small files need to be downloaded. 49.Pp 50The 51.Xr freebsd-update 8 52tool uses 53.Nm 54to download binary patch files. 55.Sh ENVIRONMENT 56.Bl -tag -width HTTP_PROXY_AUTH 57.It Ev HTTP_PROXY 58URL of the proxy to use for HTTP requests. 59.It Ev HTTP_PROXY_AUTH 60Authorization parameters for the HTTP proxy. 61.It Ev HTTP_USER_AGENT 62The User-Agent string to use for HTTP requests. 63The default is 64.Dq phttpget/0.1 . 65.It Ev HTTP_TIMEOUT 66Timeout for HTTP request in seconds. 67.El 68.Sh SEE ALSO 69.Xr fetch 1 , 70.Xr freebsd-update 8 71.Sh AUTHORS 72.An -nosplit 73The 74.Nm 75utility was written by 76.An Colin Percival Aq Mt cperciva@FreeBSD.org 77initially for use with 78.Xr portsnap 8 79(now removed) and has been used by 80.Xr freebsd-update 8 . 81This manual page was written by 82.An Xin LI Aq Mt delphij@FreeBSD.org . 83