Bug#744725: busybox: wget is appending instead of replacing with "--header"
Package: busybox
Version: 1:1.22.0-5
Severity: normal
The following command fails for me:
---
$ busybox wget --header 'Host: 1.updates.services.ffhl' "http://luebeck.freifunk.net/stable/sysupgrade/gluon-ffhl-0.4-tp-link-tl-mr3420-v1-sysupgrade.bin"
Connecting to luebeck.freifunk.net (141.83.153.180:80)
wget: server returned error: HTTP/1.1 404 Not Found
---
While with GNU Wget 1.15 it works just fine:
---
wget --header 'Host: 1.updates.services.ffhl' "http://luebeck.freifunk.net/stable/sysupgrade/gluon-ffhl-0.4-tp-link-tl-mr3420-v1-sysupgrade.bin"
--2014-04-13 23:58:26-- http://luebeck.freifunk.net/stable/sysupgrade/gluon-ffhl-0.4-tp-link-tl-mr3420-v1-sysupgrade.bin
Resolving luebeck.freifunk.net (luebeck.freifunk.net)... 141.83.153.180, 2001:638:70a:b153:6e62:6dff:fe82:ec06
Connecting to luebeck.freifunk.net (luebeck.freifunk.net)|141.83.153.180|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3407876 (3.2M) [application/octet-stream]
Saving to: ‘gluon-ffhl-0.4-tp-link-tl-mr3420-v1-sysupgrade.bin.3’
0% [ ] 28,936 10.1KB/s ^C
---
Looking at the HTTP Get message with wireshark it seems that
busybox-wget is keeping the original "Host: luebeck.freifunk.net" and
only appends "Host: 1.updates.services.ffhl". While GNU-wget is
replacing the original http host field which seems to make more sense
from a user's perspective.
Cheers, Linus
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages busybox depends on:
ii libc6 2.18-4
busybox recommends no packages.
busybox suggests no packages.
-- no debconf information
Reply to: