summaryrefslogtreecommitdiffhomepage
path: root/networking/wget.c
AgeCommit message (Collapse)Author
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.
2003-12-19Use getopt_ulflagsGlenn L McGrath
2003-10-31Rework wget, the xconnect interface, and its various clientsEric Andersen
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
2003-09-15Be entirely consistant when using ioctl(0, TIOCGWINSZ, &winsize)Eric Andersen
to ensure proper fallback behavior on, i.e. serial consoles. -Erik
2003-09-11Patch from Philip Blundell:Eric Andersen
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.
2003-09-10add ipv6 literal support to wgetGlenn L McGrath
2003-08-29Correct logic in determining size of block to download, as pointed outGlenn L McGrath
by Junio C Hamano
2003-08-28"When the initial request by wget is responded by a 3XX redirectGlenn L McGrath
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@ ----------------------------------------------------------------------
2003-08-28"When the filesize is known from content-length header, safe_fread isGlenn L McGrath
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
2003-07-22Remove remaining libc5 support codeEric Andersen
2003-03-19Major coreutils update.Manuel Novoa III
2003-03-11cope with crappy windoze ftp serversEric Andersen
2002-07-12Accept the --passive-ftp cmd.line option. We always use passive ftp mode,Robert Griebl
so it doesn't hurt (adds compatibility though)
2002-07-03A patch from Bart Visscher <magick@linux-fan.com> to add anEric Andersen
xconnect helper routine which does: -address and port resolving -tries to connect to all resolved addresses until connected -uses getaddrinfo, so works for IPv6 too This patch also ports rdate, telnet, and wget to use the new xconnect function. Thanks Bart!
2002-05-14Added support for -Y|--proxy=on/off to wgetRobert Griebl
2002-04-17* networking/wget.c (wget_main): Check return value of safe_fwrite.Matt Kraai
2002-03-19* networking/wget.c (parse_url): Allocate a string for the empty path.Matt Kraai
* testsuite/wget/wget-handles-empty-path: New.
2001-10-24Major rework of the directory structure and the entire build system.Eric Andersen
-Erik
2001-07-19Some adjustments, mostly from David McCullough <davidm@lineo.com> toEric Andersen
make busybox be more uClinux friendly. I also adjusted Config.h for uClinux so it will automagically disable apps the arn't going to work without fork() and such. -Erik
2001-07-19The -P prefix should only be prepended to filenames which are not explicitlyMatt Kraai
specified.
2001-07-19The directory name should only be prepended if one was specified.Matt Kraai
2001-06-21Add wget -P support, finishing off bug #1176Eric Andersen
-Erik