aboutsummaryrefslogtreecommitdiff
path: root/lib/libfetch/fetch.3
Commit message (Collapse)AuthorAgeFilesLines
* libfetch, fetch: Stop recommending the use of ca_root_nss.Dag-Erling Smørgrav2023-10-081-14/+1
| | | | | | MFC after: 3 days Reviewed by: kevans, emaste Differential Revision: https://reviews.freebsd.org/D42119
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* There's no PEM(3) anywhere around; delete reference.Jens Schweikhardt2022-09-171-2/+1
|
* Remove support for SSLv3 from fetch(3).Jung-uk Kim2020-11-241-6/+2
| | | | | | | | | Support for SSLv3 was already removed from OpenSSL (r361392). Differential Revision: https://reviews.freebsd.org/D24947 Notes: svn path=/head/; revision=368000
* fetch(3): Add SOCKS5 supportKyle Evans2020-02-151-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds SOCKS5 support to the library fetch(3) and updates the man page. Details: Within the fetch_connect() function, fetch(3) checks if the SOCKS5_PROXY environment variable is set. If so, it connects to this host rather than the end-host. It then initializes the SOCKS5 connection in accordance with RFC 1928 and returns the resulting conn_t (file descriptor) for usage by the regular FTP/HTTP handlers. Design Decision: This change defaults all DNS resolutions through the proxy by sending all IPs as hostnames. Going forward, another feature might be to create another environmental variable to toggle resolutions through the proxy or not.. One may set the SOCKS5_PROXY environment variable in any of the formats: SOCKS5_PROXY=proxy.example.com SOCKS5_PROXY=proxy.example.com:1080 SOCKS5_PROXY=192.0.2.0 SOCKS5_PROXY=198.51.100.0:1080 SOCKS5_PROXY=[2001:db8::1] SOCKS5_PROXY=[2001:db8::2]:1080 Then perform a request with fetch(1). (note by kevans) I've since been informed that Void Linux/xbps has a fork of libfetch that also implements SOCKS5. I may compare/contrast the two in the mid-to-near future. Submitted by: Farhan Khan <farhan farhan codes> Differential Revision: https://reviews.freebsd.org/D18908 Notes: svn path=/head/; revision=357968
* Document fetchReqHTTP().Mark Johnston2019-08-281-3/+19
| | | | | | | | | | Submitted by: Farhan Khan <khanzf@gmail.com> Reviewed by: 0mp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18788 Notes: svn path=/head/; revision=351573
* Fix bunch of .Xrs.Edward Tomasz Napierala2016-03-281-1/+0
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=297355
* Update fetch.1 and fetch.3 to reflect libfetch's actual use of CA bundlesMichael Gmelin2016-03-191-10/+17
| | | | | | | | | | Reviewed by: wblock Approved by: wblock MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D5558 Notes: svn path=/head/; revision=297052
* Use .netrc for HTTP sites and proxies, not just FTP.Dag-Erling Smørgrav2015-11-291-3/+3
| | | | | | | | | PR: 193740 Submitted by: TEUBEL György <tgyurci@gmail.com> MFC after: 1 week Notes: svn path=/head/; revision=291453
* Remove defunct SSLv2 support from fetch(1) and fetch(3).Jung-uk Kim2015-03-251-6/+2
| | | | Notes: svn path=/head/; revision=280630
* As pointed out by several people, r273114 was incorrect: it unconditionallyDag-Erling Smørgrav2014-10-151-11/+17
| | | | | | | | | | | | | | | disabled everything except TLS 1.0. Replace it with a more carefully wrought patch: - Switch the default for SSLv3 from on to off - Add environment variables to control TLS 1.1 and 1.2 - In verbose mode, report which version is used - Update the man page to reflect these changes. MFC after: 1 week Notes: svn path=/head/; revision=273124
* Use Mt macro to properly format mailto links (patch from Franco Fichtner ↵Baptiste Daroussin2014-06-111-12/+12
| | | | | | | | | | | | <franco@lastsummer.de> for Dragonfly) Reviewed by: des Approved by: des Obtained from: Dragonfly MFC after: 1 week Notes: svn path=/head/; revision=267371
* If HTTP_USER_AGENT is defined but empty, don't send User-Agent at all.Dag-Erling Smørgrav2014-06-051-0/+1
| | | | | | | | | PR: 184507 Submitted by: jbeich@tormail.org (with modifications) MFC after: 1 week Notes: svn path=/head/; revision=267127
* Include an Accept header in requests.Dag-Erling Smørgrav2013-07-301-2/+11
| | | | | | | | PR: kern/180917 MFC after: 1 week Notes: svn path=/head/; revision=253805
* Implement certificate verification, and many other SSL-relatedDag-Erling Smørgrav2013-07-261-3/+103
| | | | | | | | | | | imrovements; complete details in the PR. PR: kern/175514 Submitted by: Michael Gmelin <freebsd@grem.de> MFC after: 1 week Notes: svn path=/head/; revision=253680
* Remove trailing whitespace per mdoc lint warningEitan Adler2012-03-291-1/+1
| | | | | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days Notes: svn path=/head/; revision=233648
* latin1 -> utf8Dag-Erling Smørgrav2011-10-191-1/+1
| | | | Notes: svn path=/head/; revision=226537
* Update copyright dates and strip my middle name.Dag-Erling Smørgrav2011-09-271-1/+1
| | | | Notes: svn path=/head/; revision=225814
* Bump date.Dag-Erling Smørgrav2011-09-271-1/+1
| | | | Notes: svn path=/head/; revision=225813
* Think first, commit second.Dag-Erling Smørgrav2011-09-271-4/+16
| | | | | | | | | 1. Allow the caller to select active mode. 2. Fix the envar logic so it *always* overrides the caller's flags. 3. Document the change from active to passive. Notes: svn path=/head/; revision=225812
* Document HTTP digest authentication support.Dag-Erling Smørgrav2010-01-261-8/+14
| | | | | | | | | Mention some prominent past contributors: Hajimu Umemoto (ipv6), Henry Whincup (https), Jukka Ukkonen (if-modified-since) and Jean-François Dockes (digest auth) Notes: svn path=/head/; revision=203028
* Add support for HTTP 1.1 If-Modified-Since behavior.Murray Stokely2008-12-151-1/+24
| | | | | | | | | | | | | | | | | fetch(1) accepts a new argument -i <file> that if specified will cause the file to be downloaded only if it is more recent than the mtime of <file>. libfetch(3) accepts the mtime in the url structure and a flag to indicate when this behavior is desired. PR: bin/87841 Submitted by: Jukka A. Ukkonen <jau@iki.fi> (partially) Reviewed by: des, ru MFC after: 3 weeks Notes: svn path=/head/; revision=186124
* s/MAXPATHLEN/PATH_MAX/ to reflect five-year old change to the code :)Dag-Erling Smørgrav2008-02-081-1/+1
| | | | | | | | Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de> MFC after: 2 weeks Notes: svn path=/head/; revision=176104
* Document NO_PROXY / no_proxy.Dag-Erling Smørgrav2007-12-181-1/+17
| | | | | | | MFC after: 3 weeks Notes: svn path=/head/; revision=174753
* Enable FTP_COMBINE_CWDS.Dag-Erling Smørgrav2007-05-241-10/+0
| | | | Notes: svn path=/head/; revision=169960
* Add back the original behavior of changing the entire directory path atNate Lawson2007-04-221-1/+11
| | | | | | | | | | | | | once (CWD a/b/c vs. 3 CWDs). If an error occurs, we fall back to the default method of a single CWD per directory element. Since this is technically a violation of the basic FTP RFC, this behavior is under a compile-time option FTP_COMBINE_CWDS and is off by default. It should work with most Unix-based FTP daemons and can save latency. MFC after: 2 weeks Notes: svn path=/head/; revision=168960
* Fix misspelling in Poul-Henning Kamp's email address under AUTHORS, fromTom McLaughlin2005-11-301-1/+1
| | | | | | | | | pkh@ to phk@. Approved by: ade Notes: svn path=/head/; revision=152941
* Expand contractions.Ruslan Ermilov2005-02-131-2/+2
| | | | Notes: svn path=/head/; revision=141851
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Update copyright years.Dag-Erling Smørgrav2004-09-211-1/+2
| | | | Notes: svn path=/head/; revision=135546
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-1/+1
| | | | Notes: svn path=/head/; revision=131504
* I don't normally use my middle name, so remove it from attributions inDag-Erling Smørgrav2004-01-251-2/+2
| | | | | | | | man pages (though not from copyright notices). While I'm here, add email addresses where appropriate. Notes: svn path=/head/; revision=124963
* mdoc(7): Use the new feature of the .In macro.Ruslan Ermilov2003-09-081-4/+4
| | | | Notes: svn path=/head/; revision=119893
* Add an EXAMPLES section.Tom Rhodes2003-06-101-0/+22
| | | | | | | | PR: 43899 Reviewed by: des, ru Notes: svn path=/head/; revision=116169
* Assorted mdoc(7) fixes.Ruslan Ermilov2003-05-221-1/+1
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=115225
* Add and document support for a FETCH_BIND_ADDRESS environment variableDag-Erling Smørgrav2003-03-031-1/+4
| | | | | | | | | specifying a local address to bind sockets to. Caveat: lightly tested. PR: bin/37572 Notes: svn path=/head/; revision=111816
* Document .netrc support.Dag-Erling Smørgrav2003-01-221-0/+8
| | | | Notes: svn path=/head/; revision=109701
* english(4) police.Jens Schweikhardt2002-12-271-2/+2
| | | | Notes: svn path=/head/; revision=108317
* Implement and document support for an HTTP_REFERER environment variable.Dag-Erling Smørgrav2002-11-281-0/+5
| | | | | | | | | | PR: 28171 Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> Approved by: re (bmah) MFC after: 1 week Notes: svn path=/head/; revision=107372
* Fix two typos.Bill Fenner2002-11-081-2/+2
| | | | Notes: svn path=/head/; revision=106656
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-3/+3
| | | | Notes: svn path=/head/; revision=84306
* Remove whitespace at EOL.Dima Dorfman2001-07-151-19/+19
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.Dima Dorfman2001-07-091-1/+0
| | | | Notes: svn path=/head/; revision=79454
* mdoc(7) police: fixed markup and typo.Ruslan Ermilov2001-07-051-16/+16
| | | | Notes: svn path=/head/; revision=79315
* Implement a HTTP_USER_AGENT environment variable.Dag-Erling Smørgrav2001-05-271-0/+4
| | | | | | | | PR: 27669 Submitted by: Eoin Lawless <eoin@maths.tcd.ie> Notes: svn path=/head/; revision=77261
* Document the authentication callback interface.Dag-Erling Smørgrav2001-05-261-3/+42
| | | | | | | Update RFC references (should have done that ages ago...) Notes: svn path=/head/; revision=77240
* Apply 'const' liberally.Archie Cobbs2001-04-241-28/+28
| | | | | | | Fix some other minor glitches. Notes: svn path=/head/; revision=75891
* Grammar police: "its", not "it's", is the possessive form of "it".Dima Dorfman2001-04-151-1/+1
| | | | Notes: svn path=/head/; revision=75531
* Use high port range by default, and replace the 'h' option with an 'l' optionDag-Erling Smørgrav2001-03-241-3/+3
| | | | | | | that forces the ftp code to use the low (default) port range instead. Notes: svn path=/head/; revision=74716
* Support lower-case versions of the proxy environment variables.Dag-Erling Smørgrav2001-03-071-0/+8
| | | | | | | PR: bin/25494 Notes: svn path=/head/; revision=73932