Age | Commit message (Collapse) | Author |
|
|
|
responses. Yes, they are violating the rfc's. Yes they do exist anyway.
Also fix a memory leak when url_encode fails to malloc, by simply
err'ing out if so.
feedback and ok phessler@
|
|
ok phessler@
|
|
- if a remote file by the name '-' is retrieved, that does not imply
it should go to standard output...
- make -o '' reset any previous -o action
- properly handle multiple -o 's
ok phessler@
|
|
a download would stall at the end of the file for no apparent reason.
ok sthen@, phessler@
|
|
doesn't support resume, we restart the download from the beginning, like
all other browsers.
Diagnosed by sthen and halex, comment from sthen
OK sthen@, halex@
|
|
transfers. makes output between all transfers consistent; handles
SIGINFO for non-ftp transfers too; shows statistics at the end:
7303400 bytes received in 96.00 seconds (74.29 KB/s)
tweak / ok halex@, sthen@.
|
|
from the URL. In cases where the URL supplied on the command-line returned
an HTTP redirection, ftp(1) was changing the filename to one derived from
the redirected URL. Change this to always use a name derived from the
command-line URL.
Avoids unexpected behaviour with URI-encoded redirection URLs as seen
by matecocido on misc@, and avoids surprises when the redirection is
to an unexpected filename. No change when -o is used.
ok martynas@ deraadt@ "I totally approve" halex@
|
|
- urls passed to ftp containing special characters or unsafe
characters (like, spaces, <>"#{}|\^~[]`%) work
- redirects containing special characters or unsafe characters
(like, spaces, <>"#{}|\^~[]`%) work
reported & tested by ian@ (can fetch a distfile from sourceforge now)
feedback + ok tedu@ & sthen@
|
|
fetchable with -o. so point to it too. requested by chris@
ok sthen@. better halex@
|
|
fetchable, if -o outfile is passed. outfile will be used as a local
filename
- fix a bug where 'no file after host' code path never got entered;
consider no file after dir invalid; as code intended
proxy help&ok halex@; testing(including proxies,pkg_add)&ok sthen@;
looks good to millert@
|
|
No binary change.
|
|
needed not to make a status of 200 (OK) fall through to the redirect
handling.
This was not noticed since the later code would ignore the isredirect
flag unless it also received a "Location: " header.
ok martynas@
|
|
file transfers in all cases
- do it a bit earlier and use HTTP/1.0 if we won't send the range header
- change resume -> restart_point where it is intended
ok halex@, millert@
|
|
"looks sensible" deraadt@, "fine by me" martynas@
also removed an indeed misplaced/outdated comment per martynas@ request
|
|
actually know that that login is not provided in url; and we should
guess it. fixes a bug reported by halex@ where it tried to login
as 'ftp' after unsuccessful logins; ok theo, halex@, krw@
|
|
- don't spam ftp server with four anonftp logins; if ftp_login has
already failed in setpeer we give up. also makes install script
nicer; req'd by theo
- fix autologin = no case which never really worked in fetch since
it did not check for autologin before logging in...
part 1: ok theo, krw@
part 2: "looks right" millert@, ok sthen@
|
|
small stuff. make it a fetcher. shrinks quite a bit
agreed by millert@, krw@
ok theo, sthen@
|
|
|
|
-T and just show titles by default for non-verbose transfers;
discussed with, ok theo, sthen@
|
|
- resume ftp transfers [-C, reget, mget], if local file does not
exist
ok theo
|
|
from frantisek holop, ok millert
|
|
adapted from a patch by nikns, with tweaks by millert.
took forever to test for real...
okay miod@, henning@, millert@
|
|
'mget -cr 4.*' would recursively fetch (-r), and resume the previous
transfers (-c) of 4.X release directories
uses local matching (fnmatch), but only for recursive transfers.
current behavior is not changed in any way.
- while here, ifndef SMALL debugging stuff, this saves some space,
for floppies
- some debugging code was enabled for non-debugging mode, checks
assume debug is set to zero, but it's not initially set
- all "Confirm with" prompts are forced, remove redundant argument
- fix usage: -C and -c are not available for SMALL
discussed a year ago w/ pyr@
looks good to millert@
previous version looked good to pyr@
man page tweaks & ok jmc@
|
|
Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.
OK deraadt@
|
|
able to continue multiple transfers with -C; ok millert@
while here fix some comments (!SMALL vs. SMALL stuff), and add
missing
|
|
to do; theo agrees, millert oks
|
|
ok millert@
|
|
ok millert@, pyr@
|
|
and sending of appropriate cookies. No retrieval of new cookies is done.
Careful review and lots of input by millert and ray.
ok millert@, ray@
|
|
based on code from Florent Thoumie, ok millert@
|
|
From Pierre Riteau <pierre dot riteau at free dot fr>.
OK jaredy@ and moritz@.
|
|
OK otto@.
|
|
|
|
"looks good" pedro, fgsch, ok otto
|
|
- Instead of generating the same string twice using printf,
generate once and reuse.
- Use err instead of errx with strerror.
OK otto@
|
|
ok otto
|
|
returns -1 instead of checking if connstr == NULL.
OK beck@, moritz@
|
|
SSL connections, due to SSL_read()'s prototype. This allows us to
change ftp_read to return size_t and have it return (0) on error,
just like fread().
OK otto@, beck@
|
|
While here, remove pointless void pointer cast.
OK otto@, beck@
|
|
OK otto@
|
|
comments. No binary change.
Found by lint.
OK beck@, deraadt@
|
|
from Rainer_Giedat@genua.de
|
|
|
|
|
|
for files >2GB via proxy.
help and discussion otto@, ok otto@ mickey@
|
|
|
|
support. while it's being tested switch to 1.0. noticed and tested by nick@.
|
|
using some sort of it for a long time now; shrinks ~200 bytes.
ok by millert@ and sturm@.
|
|
deraadt@ ok.
|