1*bb75b0d5SLexi Winter/* 2*bb75b0d5SLexi Winter * SPDX-License-Identifier: ISC 3*bb75b0d5SLexi Winter * 4*bb75b0d5SLexi Winter * Copyright (c) 2025 Lexi Winter <ivy@FreeBSD.org> 5*bb75b0d5SLexi Winter * 6*bb75b0d5SLexi Winter * Permission to use, copy, modify, and distribute this software for any 7*bb75b0d5SLexi Winter * purpose with or without fee is hereby granted, provided that the above 8*bb75b0d5SLexi Winter * copyright notice and this permission notice appear in all copies. 9*bb75b0d5SLexi Winter * 10*bb75b0d5SLexi Winter * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11*bb75b0d5SLexi Winter * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12*bb75b0d5SLexi Winter * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13*bb75b0d5SLexi Winter * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14*bb75b0d5SLexi Winter * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15*bb75b0d5SLexi Winter * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16*bb75b0d5SLexi Winter * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17*bb75b0d5SLexi Winter */ 18*bb75b0d5SLexi Winter 19*bb75b0d5SLexi Wintercomment = "Retrieve a file from a remote URL" 20*bb75b0d5SLexi Winter 21*bb75b0d5SLexi Winterdesc = <<EOD 22*bb75b0d5SLexi WinterThe fetch(1) utility retrieves one or more files from a remote URL via 23*bb75b0d5SLexi WinterHTTP or FTP. fetch(1) includes support for TLS, HTTP proxies, .netrc 24*bb75b0d5SLexi Winterfiles, and includes a "mirror" mode which only downloads files which 25*bb75b0d5SLexi Winterare newer on the remote site. 26*bb75b0d5SLexi Winter 27*bb75b0d5SLexi WinterAlso provided is fetch(3), a library which allows applications to use 28*bb75b0d5SLexi Winterthis functionality programmatically. 29*bb75b0d5SLexi WinterEOD 30