summaryrefslogtreecommitdiff
path: root/lib/libfetch
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix a regression introduced in rev 1.99: replace fclose(f) with a commentDag-Erling Smørgrav2008-01-231-1/+5
| | | | | | | | | explaining why f cannot possibly be a valid FILE * at this point. MFC after: 1 day Notes: svn path=/head/; revision=175611
* Add missing dependencies on Makefile (fixes NO_CLEAN builds).Ruslan Ermilov2007-12-191-4/+4
| | | | Notes: svn path=/head/; revision=174767
* As several people pointed out, I did all the ctype casts the wrongDag-Erling Smørgrav2007-12-194-28/+36
| | | | | | | | | | way (not for the first time...) Noticed by: bde, ru ++ MFC after: 1 week Notes: svn path=/head/; revision=174761
* Document NO_PROXY / no_proxy.Dag-Erling Smørgrav2007-12-181-1/+17
| | | | | | | MFC after: 3 weeks Notes: svn path=/head/; revision=174753
* Add support for the NO_PROXY / no_proxy environment variable as used byDag-Erling Smørgrav2007-12-184-8/+63
| | | | | | | | | | | | lynx, curl etc. Note that this patch differs significantly from that in the PR, as the submitter refined it after submitting the PR. PR: 110388 Submitted by: Alexander Pohoyda <alexander.pohoyda@gmx.net> MFC after: 3 weeks Notes: svn path=/head/; revision=174752
* Old patch I had lying around: correctly cast the argument to is*().Dag-Erling Smørgrav2007-12-183-24/+25
| | | | | | | | | IWBNI gcc could warn about this the way it warns about printf() abuse. MFC after: 1 week Notes: svn path=/head/; revision=174751
* Clean up namespace violations.Dag-Erling Smørgrav2007-12-147-314/+314
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=174588
* Enable FTP_COMBINE_CWDS.Dag-Erling Smørgrav2007-05-242-10/+2
| | | | Notes: svn path=/head/; revision=169960
* Bump library versions in preparation for 7.0.Daniel Eischen2007-05-211-1/+1
| | | | | | | Ok'd by: kan Notes: svn path=/head/; revision=169807
* Handle temporary redirects (HTTP status code 307)Dag-Erling Smørgrav2007-05-081-0/+2
| | | | | | | | | PR: kern/112515 Submitted by: Ryan C. Gordon <icculus@icculus.org> MFC after: 3 weeks Notes: svn path=/head/; revision=169386
* Add back the original behavior of changing the entire directory path atNate Lawson2007-04-222-2/+34
| | | | | | | | | | | | | 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
* Respect MK_INET6_SUPPORT.Yaroslav Tykhiy2006-07-271-1/+4
| | | | Notes: svn path=/head/; revision=160737
* Respect FETCH_BIND_ADDRESS when opening the data connection.Dag-Erling Smørgrav2006-06-131-0/+5
| | | | | | | PR: misc/98872 Notes: svn path=/head/; revision=159566
* Fix a bug introduced in rev 1.92, where, when changing from one directoryDag-Erling Smørgrav2006-06-131-0/+2
| | | | | | | | | | | to another, the first CWD after a string of CDUPs would incorrectly include a slash before the directory name. Reported by: obrien PR: bin/83278 Notes: svn path=/head/; revision=159565
* Reimplementation of world/kernel build options. For details, see:Ruslan Ermilov2006-03-171-1/+3
| | | | | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine) Notes: svn path=/head/; revision=156813
* In order to maintain interoperability with certain broken FTP servers,Dag-Erling Smørgrav2006-01-191-2/+18
| | | | | | | | | | ignore a MODE failure if and only if the mode we attempted to set was S (which is supposed to be the default). PR: bin/91973 Notes: svn path=/head/; revision=154550
* 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
* Ignore HTTP_PROXY if it is defined but empty. This was already handledDag-Erling Smørgrav2005-08-241-1/+1
| | | | | | | | | | | | | correctly in the case of FTP_PROXY, because an empty FTP_PROXY has a specific meaning ("don't use any proxy at all for ftp, even if HTTP_PROXY is defined"), while an empty HTTP_PROXY has no meaning at all. PR: bin/85185 Submitted by: Conall O'Brien <conallob=freebsd@maths.tcd.ie> MFC after: 2 weeks Notes: svn path=/head/; revision=149414
* Change directory one level at a time, and use CDUP to back out. This is aDag-Erling Smørgrav2005-08-121-29/+152
| | | | | | | | | | work in progress; it partially fixed bin/83278 and is a prerequisite to fixing bin/83277. PR: bin/83277, bin/83278 Notes: svn path=/head/; revision=148986
* Bump the shared library version number of all libraries that have notKen Smith2005-07-221-1/+1
| | | | | | | | | | been bumped since RELENG_5. Reviewed by: ru Approved by: re (not needed for commit check but in principle...) Notes: svn path=/head/; revision=148297
* Set the TCP_NODELAY socket option and clear TCP_NOPUSH in order to flushKelly Yancey2005-03-021-2/+15
| | | | | | | | | | | any pending HTTP request rather than calling shutdown(2) with SHUT_WR. This makes libfetch (and thus fetch(1)) work again with Squid proxies configured to not allow half-closed connections. Reported by: Pawel Worach (pawel.worach AT telia DOT com) Notes: svn path=/head/; revision=143049
* Fix a memory leak: when freeing the connection structure, don't forget toDag-Erling Smørgrav2005-02-161-0/+1
| | | | | | | | | | free the connection buffer as well. PR: bin/76153 MFC after: 1 week Notes: svn path=/head/; revision=141970
* Set TCP_NOPUSH on HTTP requests, reducing the number of round-tripsKelly Yancey2005-02-161-1/+9
| | | | | | | | | necessary to establish each connection. MFC after: 2 weeks Notes: svn path=/head/; revision=141958
* 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
* NOCRYPT -> NO_CRYPTRuslan Ermilov2004-12-211-1/+1
| | | | Notes: svn path=/head/; revision=139113
* Update copyright years.Dag-Erling Smørgrav2004-09-218-8/+9
| | | | Notes: svn path=/head/; revision=135546
* Don't forget to allocate space for the terminating NUL when converting toDag-Erling Smørgrav2004-08-071-1/+1
| | | | | | | | | | | base 64. PR: misc/70022 Submitted by: Herve Masson <herve-bsdbt@mindstep.com> MFC after: 3 days Notes: svn path=/head/; revision=133280
* Join the 21st century: Cryptography is no longer an optional componentColin Percival2004-08-061-1/+0
| | | | | | | | | | | | | of releases. The -DNOCRYPT build option still exists for anyone who really wants to build non-cryptographic binaries, but the "crypto" release distribution is now part of "base", and anyone installing from a release will get cryptographic binaries. Approved by: re (scottl), markm Discussed on: freebsd-current, in late April 2004 Notes: svn path=/head/; revision=133196
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-1/+1
| | | | Notes: svn path=/head/; revision=131504
* Slight tweak to previous commit: don't forget to call _http_seterr() ifDag-Erling Smørgrav2004-02-111-0/+1
| | | | | | | we get a genuine 416 reply. Notes: svn path=/head/; revision=125697
* When restarting a transfer that has already completed, the server willDag-Erling Smørgrav2004-02-111-9/+41
| | | | | | | | | | reply with a 416 error code (requested range not satisfiable) because we ask it to start at the end of the file. Handle this gracefully by considering a 416 reply a success if the requested offset exactly matches the length of the file and the requested length is zero. Notes: svn path=/head/; revision=125696
* Re-wrap some comments.Dag-Erling Smørgrav2004-02-111-6/+7
| | | | Notes: svn path=/head/; revision=125695
* 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
* preparation for RFC3493. EAI_NODATA was deprecated.Hajimu UMEMOTO2003-10-231-0/+2
| | | | Notes: svn path=/head/; revision=121423
* mdoc(7): Use the new feature of the .In macro.Ruslan Ermilov2003-09-081-4/+4
| | | | Notes: svn path=/head/; revision=119893
* Don't close a FILE * which we know is bogus.Dag-Erling Smørgrav2003-08-291-1/+0
| | | | Notes: svn path=/head/; revision=119557
* Some servers respond to RETR in active mode with 125 (connection alreadyDag-Erling Smørgrav2003-08-191-1/+1
| | | | | | | | | | | open) rather than 150 (opening connection). There's no reason why we shouldn't accept that. PR: misc/42172 MFC in: 3 days Notes: svn path=/head/; revision=119123
* Make sure the crypto versions of libfetch and fetch(1) appear inRuslan Ermilov2003-07-221-0/+1
| | | | | | | | | the "crypto" distribution. Approved by: des Notes: svn path=/head/; revision=117890
* 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
* Retire the useless NOSECURE knob.Dag-Erling Smørgrav2003-05-191-1/+1
| | | | | | | Approved by: re (scottl) Notes: svn path=/head/; revision=115157
* Mark libfetch as c99-clean. Always build at WARNS level 2 rather thanDag-Erling Smørgrav2003-05-011-2/+2
| | | | | | | | juggling with levels 2 and 3, as this has lead to world breakage for NOCRYPT users in the past. Notes: svn path=/head/; revision=114420
* Don't dereference flags if NULL (see http.c rev 1.87)Dag-Erling Smørgrav2003-03-291-1/+1
| | | | Notes: svn path=/head/; revision=112797
* The flags passed in to _ftp_get_proxy may be nullMike Makonnen2003-03-191-1/+1
| | | | | | | Approved by: des, markm (mentor)(implicit) Notes: svn path=/head/; revision=112420
* Don't parse the proxy URL unless we're actually going to use it. No realDag-Erling Smørgrav2003-03-112-8/+16
| | | | | | | functional difference, but debugging output will be less confusing. Notes: svn path=/head/; revision=112081
* Add and document support for a FETCH_BIND_ADDRESS environment variableDag-Erling Smørgrav2003-03-033-4/+37
| | | | | | | | | specifying a local address to bind sockets to. Caveat: lightly tested. PR: bin/37572 Notes: svn path=/head/; revision=111816
* No need for the OPENSSL_NO_KRB5 switch anymore.Mark Murray2003-01-311-1/+1
| | | | | | | Fixed by: nectar Notes: svn path=/head/; revision=110165
* Adjust for OpenSSL 0.9.7.Mark Murray2003-01-281-1/+1
| | | | Notes: svn path=/head/; revision=110011
* style(9): add parentheses to sizeof even when not strictly required.Dag-Erling Smørgrav2003-01-285-22/+22
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=109967