aboutsummaryrefslogtreecommitdiff
path: root/networking/wget.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-03-02 15:08:06 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-03-02 15:08:06 +0000
commit50af926ecff4be8492ff250743bef0b2659d17ea (patch)
treec12c24fb1594a0f0147768e463f949287a667699 /networking/wget.c
parentd9415d6335b73a67512667497f7a0a0bd5774b2d (diff)
downloadbusybox-w32-50af926ecff4be8492ff250743bef0b2659d17ea.tar.gz
busybox-w32-50af926ecff4be8492ff250743bef0b2659d17ea.tar.bz2
busybox-w32-50af926ecff4be8492ff250743bef0b2659d17ea.zip
wget: fix --header handling
Diffstat (limited to 'networking/wget.c')
-rw-r--r--networking/wget.c24
1 files changed, 15 insertions, 9 deletions
diff --git a/networking/wget.c b/networking/wget.c
index b40a1ac15..6527538e0 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -420,15 +420,17 @@ int wget_main(int argc UNUSED_PARAM, char **argv)
420 KEY_content_length = 1, KEY_transfer_encoding, KEY_chunked, KEY_location 420 KEY_content_length = 1, KEY_transfer_encoding, KEY_chunked, KEY_location
421 }; 421 };
422 enum { 422 enum {
423 WGET_OPT_CONTINUE = 0x1, 423 WGET_OPT_CONTINUE = (1 << 0),
424 WGET_OPT_SPIDER = 0x2, 424 WGET_OPT_SPIDER = (1 << 1),
425 WGET_OPT_QUIET = 0x4, 425 WGET_OPT_QUIET = (1 << 2),
426 WGET_OPT_OUTNAME = 0x8, 426 WGET_OPT_OUTNAME = (1 << 3),
427 WGET_OPT_PREFIX = 0x10, 427 WGET_OPT_PREFIX = (1 << 4),
428 WGET_OPT_PROXY = 0x20, 428 WGET_OPT_PROXY = (1 << 5),
429 WGET_OPT_USER_AGENT = 0x40, 429 WGET_OPT_USER_AGENT = (1 << 6),
430 WGET_OPT_PASSIVE = 0x80, 430 WGET_OPT_RETRIES = (1 << 7),
431 WGET_OPT_HEADER = 0x100, 431 WGET_OPT_NETWORK_READ_TIMEOUT = (1 << 8),
432 WGET_OPT_PASSIVE = (1 << 9),
433 WGET_OPT_HEADER = (1 << 10),
432 }; 434 };
433#if ENABLE_FEATURE_WGET_LONG_OPTIONS 435#if ENABLE_FEATURE_WGET_LONG_OPTIONS
434 static const char wget_longopts[] ALIGN1 = 436 static const char wget_longopts[] ALIGN1 =
@@ -440,6 +442,10 @@ int wget_main(int argc UNUSED_PARAM, char **argv)
440 "directory-prefix\0" Required_argument "P" 442 "directory-prefix\0" Required_argument "P"
441 "proxy\0" Required_argument "Y" 443 "proxy\0" Required_argument "Y"
442 "user-agent\0" Required_argument "U" 444 "user-agent\0" Required_argument "U"
445 /* Ignored: */
446 // "tries\0" Required_argument "t"
447 // "timeout\0" Required_argument "T"
448 /* Ignored (we always use PASV): */
443 "passive-ftp\0" No_argument "\xff" 449 "passive-ftp\0" No_argument "\xff"
444 "header\0" Required_argument "\xfe" 450 "header\0" Required_argument "\xfe"
445 ; 451 ;