aboutsummaryrefslogtreecommitdiff
path: root/networking/wget.c
AgeCommit message (Collapse)Author
2006-10-23wget: -100 bytes, reduce stack usage, remove --header length limitDenis Vlasenko
2006-10-15wget: xatoi's were oversealous ("200 OK" isn't a number)Denis Vlasenko
2006-10-14add open_read_close() and similar stuffDenis Vlasenko
2006-10-10fixes from Vladimir Dronnikov <dronnikov@gmail.ru>Denis Vlasenko
2006-10-08correct largefile support, add comments about it.Denis Vlasenko
2006-10-08attempt to regularize atoi mess.Denis Vlasenko
2006-10-07dd: make it recognize not only 'k' but 'K' too;Denis Vlasenko
make it (partially) CONFIG_LFS-aware
2006-10-07wget: don't be careless with xstrdup'ingDenis Vlasenko
2006-10-07wget: fix download of URLs like:Denis Vlasenko
http://busybox.net?var=a/b http://busybox.net?login=john@doe http://busybox.net#test/test
2006-10-03getopt_ulflags -> getopt32.Denis Vlasenko
It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
2006-10-01wget: make progress bar and ETA work correctly with -cDenis Vlasenko
2006-09-27silly switch style fixDenis Vlasenko
2006-09-26wget: add (configurable) large file support. Run tested.Denis Vlasenko
2006-09-23wget: fix bug where wget creates null file if there is no remote one.Denis Vlasenko
add O_LARGEFILE support (not run tested :).
2006-09-17whitespace cleanupDenis Vlasenko
2006-09-15So, in the cornucopia of superfulous warning directives I didn't add to theRob Landley
tree, we have the warning about failed inlines (which with our inline limit set to zero means any usage of the "inline" keyword at all). Note that setting the inline limit to zero, and using -Werror, both predated adding the warning about inlines to the tree. So whatever checkin added that did nothing but break the tree. But oh well. The second category of superfluous warnings is warning about functions with no previous declaration. Apparently, if you add ALWAYS_INLINE to an empty function definition, it considers the sucker undeclared as far as the warning is concerned. (I.E. it's a buggy warning. I try not to ask the compiler to generate warnings it can't competently generate.) This is why I removed "inline" (unbreak allbareconfig), and couldn't replace it with "ALWAYS_INLINE" (still broke allbareconfig).
2006-09-09wget: wrap one atrociously long line (around 200 chars long!).Denis Vlasenko
2006-09-03uuencode: common implementation for wget and uuencode (closing bug 694)Denis Vlasenko
2006-09-02- patch from Csaba Henk to make the "User-Agent" header field configurable.Bernhard Reutner-Fischer
2006-08-20- typo s/ENABLE_WGET_LONG_OPTIONS/ENABLE_FEATURE_WGET_LONG_OPTIONS/gBernhard Reutner-Fischer
2006-08-03Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
2006-07-12A couple things that got tangled up in my tree, easier to check in both thanRob Landley
untangle them: Rewrite u_signal_names() into get_signum() and get_signame(), plus trim the signal list to that required by posix (they can specify the numbers for the rest if they really need them). (This is preparatory cleanup for adding a timeout applet like Roberto Foglietta wants.) Export the itoa (added due to Denis Vlasenko, although it's not quite his preferred implementation) from xfuncs.c so it's actually used, and remove several other redundant implementations of itoa and utoa() in the tree.
2006-06-27Patch from Geoff Baker to fix bug http://bugs.busybox.net/view.php?id=905 byRob Landley
changing wget's ftp code not to chdir but to use the complete path each time.
2006-06-13Patch from Denis Vlasenko:Rob Landley
* Rename a var: statbytes -> transferred * cursize == transferred, always. Nuke cursize. * Make progressmeter() a nop if !CONFIG_FEATURE_WGET_STATUSBAR (reduces #ifdef forest) * double elapsed -> int elapsed * Do not sprintf to buf first and then write(STDERR) it, just fprintf directly to stderr * Progress bar printing code made smaller * Style fixes
2006-06-13Whitespace cleanup from Denis Vlasenko.Rob Landley
2006-06-03- use bb_msg_{read,write}_error where appropriate.Bernhard Reutner-Fischer
text data bss dec hex filename 825015 9100 645216 1479331 1692a3 busybox.old 824919 9100 645216 1479235 169243 busybox
2006-05-31- add CONFIG_FEATURE_WGET_LONG_OPTIONSBernhard Reutner-Fischer
2006-05-27Consolidate #include <sys/time.h> so libbb.h does it.Rob Landley
2006-05-19- remove emacs layout block as suggested by Robert P.J. DayBernhard Reutner-Fischer
- use shorter boilerplate while at it
2006-05-19- include strings.hBernhard Reutner-Fischer
Thanks to Rich Felker for pointing this out.
2006-02-21Small tweak cherry-picked from Devin Bayer's monster MacOS X patch.Rob Landley
2006-01-30fix up annoying signed/unsigned and mixed type errorsEric Andersen
2006-01-25just whitespaceTim Riker
2005-12-02If we really _need_ an #ifdef like this, then we should be using the libbbRob Landley
getopt infrastructure instead.
2005-10-14- new bb_opt_complementally syntax, use [-:?] only - 'free' chars"Vladimir N. Oleynik"
- new bb_getopt_ulflags features: check max and min args, convert first argv to options special for ar and tar applets - use bb_default_error_retval for env applet
2005-09-051) bb_opt_complementaly -> bb_opt_complementally"Vladimir N. Oleynik"
2) better support long options 3) new flag '!' for bb_opt_complementally: produce bb_show_usage() if BB_GETOPT_ERROR internally
2005-04-16Patch from Bernhard Fischer to make a bunch of symbols staticEric Andersen
which were otherwise cluttering the global namespace.
2004-10-08Patch from Denis Vlasenko to fix a problem whereEric Andersen
wget http://1.2.3.4/abc/ loses last '/'
2004-04-14Larry Doolittle writes:Eric Andersen
This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry
2004-04-08Fix ftp resumeGlenn L McGrath
Terminate returned message at <CRLF> so strtoul returns without error
2004-03-27s/fileno\(stdin\)/STDIN_FILENO/gEric Andersen
s/fileno\(stdout\)/STDOUT_FILENO/g
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
2004-03-06Fix/eliminate use of atolEric Andersen
2004-02-22No need to check proxy env variable twice, ignore proxy env variable ifGlenn L McGrath
its set to 0
2004-01-31Fix http proxy use, bytes were swappedGlenn L McGrath
2004-01-26Pascal Brisset writes:Eric Andersen
uuencode fails to encode binary data because it right-shifts bytes as signed chars and keeps the duplicated sign bits. The original base64_encode() from wget/http.c is broken as well, but it is only used to encode ascii data. -- Pascal
2004-01-17Patch from Leif Lindholm (slightly modified by me), to fix httpGlenn L McGrath
redirection. Example of incorrect behaviour was the following url, busybox wget didnt get redirected to the busybox url as it should. http://freshmeat.net/redir/busybox/953/url_homepage/www.busybox.net
2004-01-17Modify bb_lookup_port to allow the protocol to be specified, allowingGlenn L McGrath
/etc/services support for inetd, netcat and tftp.
2003-12-27Fix a bug of mine, identified by Stephane BilliartGlenn L McGrath
2003-12-20Change interface to bb_lookup_host, dont try and set port inside thisGlenn L McGrath
function as there is no gracefull way of handling failures. Rename bb_getport to bb_lookup_port, allow a default port to be specified so it always returns a correct value. Modify ftpgetput/rdate/wget to use the new interface. wget/rdate now use etc/services with a falback default value.