summaryrefslogtreecommitdiffstats
path: root/lib/libfetch
Commit message (Collapse)AuthorAgeFilesLines
* The user name for anonymous ftp is now "anonymous".des2001-01-081-10/+17
| | | | | Remove the period after the last man page reference. Add a reference to RFC1635, and sort the RFC references by number.
* Back out previous (accidental) commit.des2001-01-081-1/+1
|
* Use "anonymous" rather than "ftp" as login name for anonymous ftp.des2001-01-082-4/+3
| | | | | | Rather than have a separate (misnamed) FTP_ANONYMOUS_PASSWORD constant, use FTP_ANONYMOUS_USER (i.e. "anonymous") to construct the anonymous ftp password if getlogin() fails.
* Document FTP_LOGIN.des2000-12-221-0/+2
|
* Check the FTP_LOGIN environment variable before falling back ondes2000-12-221-0/+2
| | | | FTP_ANONYMOUS_USER.
* Avoid a segfault (due to an unitialized pointer) when parsing URLs that havedes2000-12-131-0/+2
| | | | no scheme or host part.
* Somewhere along the line, I misunderstood the whole FTP_PASSIVE_MODE debatedes2000-12-062-4/+4
| | | | | | | and had libfetch selecting passive mode even when FTP_PASSIVE_MODE was not set at all, which is really quite surprising unless you know about it. So change it to the agreed default behaviour of selecting passive mode if FTP_PASSIVE_MODE is set, but not "no".
* Remove some obsolete comments.des2000-12-011-13/+0
|
* Clean up the whitespace encoding code.des2000-12-011-5/+6
|
* Add SCHEME_HTTPS.des2000-12-011-0/+1
|
* Fix old-style proxy specs: default to FTP if FTP_PROXY was set; only defaultdes2000-11-271-2/+6
| | | | to HTTP if HTTP_PROXY was used instead.
* Don't try to get the proxy port number from /etc/services.des2000-11-271-4/+0
|
* Don't go haywire if the server closes the connection in the middle of ades2000-11-221-1/+1
| | | | multiline response (proper fix this time).
* Revert previous commit, it was somewhat hasty.des2000-11-221-5/+1
|
* Don't go haywire if the server closes the connection during a multilinedes2000-11-221-1/+5
| | | | response.
* logru2000-11-221-1/+2
|
* Spell the des's name correctly.ru2000-11-141-2/+2
|
* Use Fx macro wherever possible.ru2000-11-141-1/+3
|
* Use the documented (and historical) defaults. Centralize the decision logicdes2000-11-104-37/+45
| | | | | | in order to avoid this bug in the future. Submitted by: se
* Use CHECK_FLAGdes2000-10-294-22/+22
|
* Stricter error checking in the I/O functions.des2000-10-291-1/+25
|
* Add CHECK_FLAGS, a macro for (safely) checking if a particular flag is set.des2000-10-291-0/+5
|
* Document FTP_PASSIVE_MODE and FTP_PASSWORD.des2000-10-291-1/+8
| | | | | PR: docs/20626 Submitted by: nik
* Fix this my way. David had absolutely no call overriding MAINTAINER withoutdes2000-10-281-3/+3
| | | | even giving me 24 hours to read his mail and find the bug.
* Install per function manpages so one doesn't mistakenly think we don'tobrien2000-10-281-0/+8
| | | | have manpages for libfetch's functions.
* Repeat after me, "check to see that a pointer isn't NULL beforeobrien2000-10-281-3/+3
| | | | dereferenceing it". This fixes ``pkg_add -r''.
* MFS: don't expect result code until you close the data connectiondes2000-10-271-3/+3
|
* Use funopen() instead of fdopen(). This fixes three problems:des2000-10-221-4/+118
| | | | | | | | | | | | | | - ftpTimeout was not honored when reading actual data, as opposed to talking protocol - connection caching was broken because _ftp_cached_connect() would see the result of the transfer instead of the result of the NOOP. - if the RETR succeeded, but an error occurred later (as can happen when talking to a proxy), the error would not be detected. There still remains to register an atexit(3) callback to close the cached connection gracefully instead of just dropping it on the floor.
* If the scheme is HTTP or HTTPS, percent-escape whitespace in the documentdes2000-10-211-1/+21
| | | | | | part. Submitted by: green
* Argh! Fix passive mode selection (again)des2000-10-171-2/+3
|
* Use the right user namedes2000-10-131-3/+3
|
* Document recent changes in URL parsing and proxy handlingdes2000-10-121-10/+20
|
* ftp.c needs _http_request()des2000-10-121-0/+11
|
* Rework proxy handling so that proxies can be specified as URLs.des2000-10-122-206/+156
| | | | As a side effect, remove a lot of duplicate and now redundant code.
* Relax URL syntax so that schemeless URLs are supported.des2000-10-121-24/+23
|
* Add macros for the names of the URL schemes we support.des2000-10-121-0/+5
|
* Make the ENVIRONMENT section more legible, and mention that HTTP_AUTH isdes2000-10-121-4/+10
| | | | colon-separated.
* Work around buggy servers such as NCSA httpd which send an incompletedes2000-09-241-9/+18
| | | | HTTP-Version on the Status-Line (see RFC2616 sections 3.1 and 6.1).
* Document the FTP_PROXY and HTTP_PROXY variables better.des2000-08-311-0/+4
|
* Grok 125 replies to passive RETR. This fixes an interoperability bug withdes2000-08-211-1/+2
| | | | | | Microsoft FTP Service. Reported by: asmodai, eivind
* Fix signedness bogon.des2000-08-021-7/+6
|
* Don't fail if _ftp_stat() reports a protocol error, since that most likelydes2000-07-271-0/+1
| | | | | | | means that the server doesn't understand SIZE or MDTM, which should not be a hard failure. Submitted by: ume
* If the server reports the size as 0, treat it as unknown. This works arounddes2000-07-251-3/+2
| | | | | | | | | a bug in some ftp servers (most notably ftp.vmunix.com) which report the size of a file correctly in ascii mode, but report it as 0 in binary mode. Reported by: asmodai Also remove an unneeded initialization.
* Centralize the default port finding code.des2000-07-253-33/+43
| | | | | Work around YA Apache bug: don't send port in Host: header if it's the default port.
* Ignore environment variables that are set but empty.des2000-07-211-40/+81
| | | | | | | | | | | | Sort out the size / length confusion. Always try to report the *real* file size in the url_stat structure, no matter how much of it is actually being sent, and try to detect inconsistencies between sizes. Rearrange the request loop to avoid having to add meaningless code just to silence compiler warnings. Switch to a more sensible and consistent interface for the _http_parse*() functions.
* Document the proxy support better.des2000-07-211-2/+15
|
* The decision to use an HTTP proxy for FTP documents belongs in the FTP codedes2000-07-212-13/+24
|
* Don't send port number to proxy unless it's not the standard FTP portdes2000-07-211-2/+6
|
* Fix the case where the file name is preceded by a lone slash.des2000-07-201-1/+1
|
* Don't try to skip to the requested offset if the server returns more datades2000-07-191-8/+10
| | | | | | than requested. Instead, inform the caller of the real offset by modifying the offset field in the original struct url, and let him decide how to handle the situation.
OpenPOWER on IntegriCloud