wget: --no-cache option (noop) wanted
John Spencer
maillist-busybox at barfooze.de
Thu Jun 14 21:19:06 UTC 2012
On 06/13/2012 05:32 PM, Denys Vlasenko wrote:
> On Thu, Jun 7, 2012 at 3:30 PM, John Spencer
> <maillist-busybox at barfooze.de> wrote:
>> in gnu wget, it is not important if you place --options before or after the
>> url, but bb wget fails.
> Are you sure?
root:/src/build$ busybox wget http://l.yimg.com/a/i/mntl/ww/events/p.gif
--no-check-certificate && echo success
Connecting to l.yimg.com (66.196.65.188:80)
p.gif 100%
|******************************************************************************************************************|
43 0:00:00 ETA
wget: not an http or ftp url: --no-check-certificate
root:/src/build$
busybox will download but return EXIT_FAILURE
gnu wget:
/dev/shm $ wget http://l.yimg.com/a/i/mntl/ww/events/p.gif
--no-check-certificate && echo success
[...]
2012-06-14 23:07:30 (9.17 MB/s) - “p.gif” saved [43/43]
success
/dev/shm $
>> another broken thing in busybox wget is the -c switch which should enable
>> resuming of incomplete downloads, but when this option is used with a server
>> that doesnt support REST it will fail to download at all. iirc this happened
>> with the zlib.net server.
> Proposed fix:
> [...]
i have not tested the patch yet (mostly because the copied and pasted
diff does not work, and because of Rich's considerations).
what busybox wget should do imo is:
only use "Range" feature when the output file exists, and is smaller
than the total download size.
if both is true, and the server does not support Range, return error
message, otherwise continue download.
More information about the busybox
mailing list