aboutsummaryrefslogtreecommitdiff
path: root/networking/wget.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* wget: fix download of URLs like:Denis Vlasenko2006-10-071-6/+30
| | | | | | http://busybox.net?var=a/b http://busybox.net?login=john@doe http://busybox.net#test/test
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-4/+4
| | | | | | | | 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.
* wget: make progress bar and ETA work correctly with -cDenis Vlasenko2006-10-011-35/+37
|
* silly switch style fixDenis Vlasenko2006-09-271-1/+1
|
* wget: add (configurable) large file support. Run tested.Denis Vlasenko2006-09-261-53/+63
|
* wget: fix bug where wget creates null file if there is no remote one.Denis Vlasenko2006-09-231-78/+38
| | | | add O_LARGEFILE support (not run tested :).
* whitespace cleanupDenis Vlasenko2006-09-171-1/+1
|
* So, in the cornucopia of superfulous warning directives I didn't add to theRob Landley2006-09-151-1/+1
| | | | | | | | | | | | | | | | | 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).
* wget: wrap one atrociously long line (around 200 chars long!).Denis Vlasenko2006-09-091-18/+25
|
* uuencode: common implementation for wget and uuencode (closing bug 694)Denis Vlasenko2006-09-031-20/+2
|
* - patch from Csaba Henk to make the "User-Agent" header field configurable.Bernhard Reutner-Fischer2006-09-021-3/+7
|
* - typo s/ENABLE_WGET_LONG_OPTIONS/ENABLE_FEATURE_WGET_LONG_OPTIONS/gBernhard Reutner-Fischer2006-08-201-2/+2
|
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-9/+6
| | | | | | | | | | 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.)
* A couple things that got tangled up in my tree, easier to check in both thanRob Landley2006-07-121-9/+8
| | | | | | | | | | | | | | 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.
* Patch from Geoff Baker to fix bug http://bugs.busybox.net/view.php?id=905 byRob Landley2006-06-271-19/+3
| | | | changing wget's ftp code not to chdir but to use the complete path each time.
* Patch from Denis Vlasenko:Rob Landley2006-06-131-57/+44
| | | | | | | | | | | | * 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
* Whitespace cleanup from Denis Vlasenko.Rob Landley2006-06-131-9/+8
|
* - use bb_msg_{read,write}_error where appropriate.Bernhard Reutner-Fischer2006-06-031-2/+2
| | | | | | text data bss dec hex filename 825015 9100 645216 1479331 1692a3 busybox.old 824919 9100 645216 1479235 169243 busybox
* - add CONFIG_FEATURE_WGET_LONG_OPTIONSBernhard Reutner-Fischer2006-05-311-0/+4
|
* Consolidate #include <sys/time.h> so libbb.h does it.Rob Landley2006-05-271-1/+0
|
* - remove emacs layout block as suggested by Robert P.J. DayBernhard Reutner-Fischer2006-05-191-10/+0
| | | | - use shorter boilerplate while at it
* - include strings.hBernhard Reutner-Fischer2006-05-191-0/+1
| | | | Thanks to Rich Felker for pointing this out.
* Small tweak cherry-picked from Devin Bayer's monster MacOS X patch.Rob Landley2006-02-211-1/+1
|
* fix up annoying signed/unsigned and mixed type errorsEric Andersen2006-01-301-2/+2
|
* just whitespaceTim Riker2006-01-251-17/+17
|
* If we really _need_ an #ifdef like this, then we should be using the libbbRob Landley2005-12-021-3/+0
| | | | getopt infrastructure instead.
* - new bb_opt_complementally syntax, use [-:?] only - 'free' chars"Vladimir N. Oleynik"2005-10-141-14/+14
| | | | | - 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
* 1) bb_opt_complementaly -> bb_opt_complementally"Vladimir N. Oleynik"2005-09-051-1/+1
| | | | | 2) better support long options 3) new flag '!' for bb_opt_complementally: produce bb_show_usage() if BB_GETOPT_ERROR internally
* Patch from Bernhard Fischer to make a bunch of symbols staticEric Andersen2005-04-161-2/+2
| | | | which were otherwise cluttering the global namespace.
* Patch from Denis Vlasenko to fix a problem whereEric Andersen2004-10-081-4/+8
| | | | wget http://1.2.3.4/abc/ loses last '/'
* Larry Doolittle writes:Eric Andersen2004-04-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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
* Fix ftp resumeGlenn L McGrath2004-04-081-5/+9
| | | | Terminate returned message at <CRLF> so strtoul returns without error
* s/fileno\(stdin\)/STDIN_FILENO/gEric Andersen2004-03-271-2/+2
| | | | s/fileno\(stdout\)/STDOUT_FILENO/g
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-25/+25
|
* Fix/eliminate use of atolEric Andersen2004-03-061-3/+11
|
* No need to check proxy env variable twice, ignore proxy env variable ifGlenn L McGrath2004-02-221-14/+15
| | | | its set to 0
* Fix http proxy use, bytes were swapped1_00_pre6Glenn L McGrath2004-01-311-2/+2
|
* Pascal Brisset writes:Eric Andersen2004-01-261-2/+2
| | | | | | | | | | 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
* Patch from Leif Lindholm (slightly modified by me), to fix httpGlenn L McGrath2004-01-171-1/+4
| | | | | | | 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
* Modify bb_lookup_port to allow the protocol to be specified, allowingGlenn L McGrath2004-01-171-3/+3
| | | | /etc/services support for inetd, netcat and tftp.
* Fix a bug of mine, identified by Stephane BilliartGlenn L McGrath2003-12-271-3/+2
|
* Change interface to bb_lookup_host, dont try and set port inside thisGlenn L McGrath2003-12-201-21/+14
| | | | | | | | 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.
* Use getopt_ulflagsGlenn L McGrath2003-12-191-58/+50
|
* Rework wget, the xconnect interface, and its various clientsEric Andersen2003-10-311-9/+21
| | | | | | | | | | | | | | in order to fix the problems with round robin DNS reported by Andrew Flegg: http://busybox.net/lists/busybox/2003-October/009579.html This removes the ipv6 specific xconnect dns lookups. I do not see why that would need to be special cased for ipv6 as was done, but that will just have to be tested. So IPV6 people -- please test this change! -Erik
* Be entirely consistant when using ioctl(0, TIOCGWINSZ, &winsize)Eric Andersen2003-09-151-7/+4
| | | | | to ensure proper fallback behavior on, i.e. serial consoles. -Erik
* Patch from Philip Blundell:Eric Andersen2003-09-111-2/+2
| | | | | | | | | | On Thu, 2003-09-11 at 01:09, Glenn McGrath wrote: > Applied Thanks. Unfortunately there was one small bug in that last patch. Could you apply this one as well? p.
* add ipv6 literal support to wgetGlenn L McGrath2003-09-101-4/+26
|
* Correct logic in determining size of block to download, as pointed outGlenn L McGrath2003-08-291-2/+2
| | | | by Junio C Hamano
* "When the initial request by wget is responded by a 3XX redirectGlenn L McGrath2003-08-281-2/+5
| | | | | | | | | | | response sent in chunked transfer encoding, the code path to resubmit the request to the redirected URL forgets to reset got_clen and chunked variables in the loop. If the redirected URL does not use chunked transfer encoding, this causes the code that slurps the body of the response to incorrectly try to parse out the chunk length which does not exist." - junkio@ ----------------------------------------------------------------------
* "When the filesize is known from content-length header, safe_fread isGlenn L McGrath2003-08-281-13/+15
| | | | | | | | always told to read sizeof(buf). This waits until the underlying fread() to time-out for the last part of the downloaded body. Fix this by sending the number of remaining bytes to read when known." - junkio@ I reworked the logic in his patch