Hi Bastian, On Sun, 30 Dec 2012 16:26:21 +0100, Bastian Bittorf wrote: > why does it fail?
It fails because they behave differently. ddns-scripts was written with BusyBox Wget in mind, and it breaks under certain circumstances when using GNU Wget. One such example is when using Hurricane Electric Dynamic DNS. Try running the commands below and watch what happens. [1], [3] and [4] all return the expected result of 'badauth'. [2], as currently used in ddns-scripts when GNU Wget is installed, does not pass the authentication correctly, and ends up in a HTTP 401 loop. As SSL dynamic DNS updates use cURL, there should be *no* reason for GNU Wget to be used in preference to BusyBox Wget. BusyBox Wget is default=y, and hence, should always be available. Installations that do include GNU Wget with OpenSSL support, are unlikely to be short on /root space, and so a few extra bytes for a BusyBox Wget implementation shouldn't cause issue. On my ar71xx installation at least, GNU Wget is comparable in size to BusyBox in its entirety [5]. I'm sure a similar situation exists on other archs too. Personally I have both Wget versions installed. I do have a use for GNU Wget, but I prefer the smaller, faster BusyBox version to be used in scripts for firing off dynamic DNS updates. Jon [1] busybox wget http://user:[email protected]/nic/update?hostname=example.org&myip=10.0.0.1 # BusyBox Wget [2] wget http://user:[email protected]/nic/update?hostname=example.org&myip=10.0.0.1 # GNU Wget [3] wget --user=user --password=password http://dyn.dns.he.net/nic/update?hostname=example.org&myip=10.0.0.1 # GNU Wget with explicit user and password definitions [4] wget --no-http-keep-alive http://user:[email protected]/nic/update?hostname=example.org&myip=10.0.0.1 # GNU Wget without HTTP keep-alive [5] root@OpenWrt:~# ls -lah /bin/busybox /usr/bin/wget-ssl -rwxr-xr-x 1 root root 469.4K Dec 27 03:09 /bin/busybox -rwxr-xr-x 1 root root 411.6K Dec 27 11:46 /usr/bin/wget-ssl
signature.asc
Description: Digital signature
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
