aboutsummaryrefslogtreecommitdiff
path: root/networking/wget.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* wget: add support for https using "openssl s_client" as a helperDenys Vlasenko2014-02-221-26/+92
| | | | | | | | | | | | | | | | | www.kernel.org started redirecting http:// to https:// making https support mandatory for any auto build scripts. function old new delta wget_main 2631 2971 +340 parse_url 409 471 +62 .rodata 115607 115626 +19 P_HTTPS - 6 +6 P_HTTP - 5 +5 P_FTP - 4 +4 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 3/0 up/down: 436/0) Total: 436 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: fix use-after-free of ->user. Closes 6836Denys Vlasenko2014-02-031-7/+9
| | | | | | | | function old new delta wget_main 2207 2223 +16 parse_url 339 353 +14 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: user-friendly fallback to httpLauri Kasanen2013-12-171-5/+12
| | | | | | | | | | | GNU wget: wget google.com // ok bb before: wget google.com // wget: not an http or ftp url function old new delta parse_url 317 339 +22 Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: if FEATURE_CLEAN_UP, free(ptr_to_globals)Guilherme Maciel Ferreira2013-10-161-0/+8
| | | | | Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: add support for connect timeoutLauri Kasanen2013-10-121-3/+21
| | | | | | | | | function old new delta open_socket 33 64 +31 wget_main 2182 2194 +12 Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Whitespace fixesDenys Vlasenko2013-07-301-7/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: do not abort if "_" is encountered in a HTTP headerDenys Vlasenko2013-07-011-2/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: reorder fread and poll: poll only if fread returns EAGAIN. Closes 5426Denys Vlasenko2012-09-031-52/+62
| | | | | | | function old new delta retrieve_file_data 451 427 -24 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: try reading after poll timeout - stdio may have buffered data. Closes 5426Denys Vlasenko2012-08-161-7/+14
| | | | | | | function old new delta retrieve_file_data 436 451 +15 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: fix wget-supports--P testsuite failure. Closes 4940Denys Vlasenko2012-06-171-6/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: make -c _not_ truncate the fileDenys Vlasenko2012-06-171-2/+14
| | | | | | | | function old new delta retrieve_file_data 396 436 +40 reset_beg_range_to_zero 52 45 -7 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: correctly handle failure to -c (continue)Denys Vlasenko2012-06-131-0/+16
| | | | | | | | function old new delta reset_beg_range_to_zero - 52 +52 wget_main 2168 2189 +21 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: add dummy --no-cacheVladimir Dronnikov2012-06-131-10/+16
| | | | | | | | | function old new delta static.wget_longopts 155 166 +11 packed_usage 29259 29231 -28 Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: fix use-after-free on redirectDenys Vlasenko2011-12-181-2/+4
| | | | | | | function old new delta wget_main 2153 2168 +15 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: URL-decode user:password before base64-encoding it into auth hdr. ↵Denys Vlasenko2011-09-111-7/+6
| | | | | | | | | | | | | | | Closes 3625. function old new delta percent_decode_in_place - 152 +152 parse_url 304 317 +13 handle_incoming_and_exit 2795 2798 +3 httpd_main 763 760 -3 decodeString 152 - -152 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 2/1 up/down: 168/-155) Total: 13 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove "Options:" string from help textsDenys Vlasenko2011-06-051-1/+0
| | | | | | | function old new delta packed_usage 28706 28623 -83 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: add a note about bug 3625Denys Vlasenko2011-04-161-0/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: make set_nport accept pointer to sockaddr, not to len_and_sockaddr.Denys Vlasenko2011-04-071-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: --post-data=STR should not encode STR, should send it verbatimVitaly Magerya2011-03-271-41/+1
| | | | | | | This matches GNU Wget 1.12 behavior. Signed-off-by: Vitaly Magerya <vmagerya@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: move help text to .c fileDenys Vlasenko2011-03-211-0/+26
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: fix fname_out usage wrt redirectsDenys Vlasenko2011-03-211-2/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: reduce bloatPere Orga2011-02-191-7/+3
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: check for final write errors for -O FILE tooDenys Vlasenko2011-02-151-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: make "wget -O FILE URL1 URL2" concatenate outputDenys Vlasenko2011-02-151-29/+37
| | | | | | | | | | | | | | Also fixes a few cases where URL1's data (like start pos) was leaking into URL2 function old new delta wget_main 2303 2321 +18 progress_meter 140 152 +12 retrieve_file_data 397 396 -1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 30/-1) Total: 29 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: fix SEGV with multiple urls and redirectionPere Orga2011-02-141-0/+1
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: support multiple URLs on command line even without -O :)Denys Vlasenko2011-02-131-55/+15
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: support multiple URLs on command lineDenys Vlasenko2011-02-131-129/+160
| | | | | | | | | | | function old new delta wget_main 2190 2310 +120 progress_meter 124 140 +16 parse_url 288 304 +16 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 152/0) Total: 152 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo fix in commentDenys Vlasenko2011-02-121-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: display 100% at the _end_ of chunked downloadDenys Vlasenko2011-02-111-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: chunked mode fix. Closes bug 3229Denys Vlasenko2011-02-111-10/+16
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: explain clearerr more clearlyDenys Vlasenko2011-02-111-1/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: correctly handle rare case when we get EAGAIN _on first_ readDenys Vlasenko2011-02-111-6/+26
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* progress meter: move file name to bb_progress_t. +20 bytesDenys Vlasenko2011-02-111-2/+2
| | | | | | We were doing expensive unicode conversion on every update Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: shrink progress meter code; strink wget and add debug loggingDenys Vlasenko2011-02-101-34/+40
| | | | | | | | | | | | | | function old new delta fgets_and_trim - 73 +73 retrieve_file_data 367 349 -18 bb_progress_update 723 699 -24 wget_main 2220 2190 -30 ftpcmd 133 87 -46 gethdr 200 153 -47 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/5 up/down: 73/-165) Total: -92 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: use closed HTTP/1.1 connection, stop when we dl'ed $content_len bytesDenys Vlasenko2011-02-101-8/+19
| | | | | | | function old new delta retrieve_file_data 353 367 +14 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* save 10 bytes on stringsDenys Vlasenko2011-02-101-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: remove functions which retry on EINTRDenys Vlasenko2011-02-101-3/+5
| | | | | | | | | | function old new delta retrieve_file_data 392 353 -39 safe_fgets 58 - -58 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-97) Total: -97 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: use FEATURE_COPYBUF_KB-sized buffer. Much faster for local transfersDenys Vlasenko2011-02-101-60/+61
| | | | | | | | | | | | | | | function old new delta base64enc - 53 +53 gethdr 190 200 +10 ftpcmd 129 133 +4 progress_meter 160 122 -38 retrieve_file_data 431 392 -39 base64enc_512 46 - -46 wget_main 2456 2220 -236 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 2/3 up/down: 67/-359) Total: -292 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace cleanupDenys Vlasenko2010-10-291-3/+3
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* wget: flush output to network before receving replyNguyễn Thái Ngọc Duy2010-09-231-0/+2
| | | | | Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-161-1/+1
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: s/xatoi_u/xatoi_positive/g - I got bored of mistyping xatoi_u as xatou_iDenys Vlasenko2010-08-121-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: fix ndelay_on call; progress bar: small shrinkDenys Vlasenko2010-08-081-1/+1
| | | | | | | function old new delta bb_progress_update 682 670 -12 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: implement -T SEC; rework progress meter to not use signals (it was unsafe)Bradley M. Kuhn2010-08-081-48/+73
| | | | | | | | | | | | | | | function old new delta retrieve_file_data 364 450 +86 bb_progress_update 615 682 +67 packed_usage 27406 27422 +16 wget_main 2440 2453 +13 static.wget_longopts 145 155 +10 progress_meter 199 159 -40 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/1 up/down: 192/-40) Total: 152 bytes Signed-off-by: Bradley M. Kuhn <bkuhn@ebb.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: fix progress displayDenys Vlasenko2010-07-121-1/+1
| | | | | | | function old new delta progress_meter 187 199 +12 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* pipe_progress: make it independent of printf machineryDenys Vlasenko2010-06-061-1/+1
| | | | | | | | | | | | | function old new delta bb_putchar_stderr - 24 +24 ParseField 494 471 -23 progress_meter 212 188 -24 xargs_main 888 842 -46 pipe_progress_main 151 105 -46 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 0/4 up/down: 24/-139) Total: -115 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: factor out hex2bin() for infiniband address parserDenys Vlasenko2010-04-041-2/+4
| | | | | | | | function old new delta hex2bin - 149 +149 in_ib 172 27 -145 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: fix bug 1057 "busybox wget segfaults with http_proxy environment set"Denys Vlasenko2010-02-111-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: ignore --no-check-certificateBernhard Reutner-Fischer2010-02-101-0/+2
| | | | | | | | | | | | | Used in a number of scripts, don't barf on it (we don't do ssl ATM). function old new delta static.wget_longopts 122 145 +23 .rodata 131925 131947 +22 packed_usage 26860 26859 -1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 45/-1) Total: 44 bytes Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* *: suppress ~60% of "aliased warnings" on gcc-4.4.1Denys Vlasenko2010-02-041-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>