On Tue, Apr 9, 2013 at 4:28 PM, Tim Rühsen <[email protected]> wrote: > My router has a DD-WRT which uses basic authentication (--user and --password > options would do it). But as one can see in your index.html, your OpenWRT uses > a form with POST method. Your original call to Wget seems to be right. > > Without a test environment, I have no clue what is going wrong (and I am not > even shure, if something goes wrong). > > Try testing without -m. > > Regards, Tim
Hi Tim, I can run tests if needed. I will try to, in order: 1- Get a wireshark trace to try and figure out as much as possible 2- Submit a patch if I can manage the time As for a test environment, that can be arranged if you feel like it. 1- Download http://downloads.openwrt.org/attitude_adjustment/12.09-rc1/x86/generic/openwrt-x86-generic-combined-ext4.img.gz 2- Install QEMU with VDE support (on Debian, you need only install vde2 for that: http://wiki.debian.org/QEMU#QEMU_networking_with_VDE ) 3- Save the attached script into the same folder as the aforementioned openwrt image and run it as root (I haven't bothered to get the permissions right yet to get it to run as a user) 4- openWrt should boot up properly, but you won't be able to connect to it from your host because the script assumes the IP address of the openWrt image's br-lan interface is 172.16.1.1/24 while openWrt defaults to 192.168.1.1/24 IIRC. To be able to connect to the web interface through the host (and test wget from there), you'll need to either: a) edit openwrt's /etc/config/network file (with vi) so the 'lan' stanza's ipaddr option is '172.16.1.1' rather than '192.168.1.1' or b) edit the script so it uses 192.168.1.x/24 addresses (I didn't like that because I need to connect many things on this box and they all default to either the 192.168.0.x/24 or the 192.168.1.x/24 subnets) I'll let you know if I get any development on this bug. Regards, Olivier
openwrt.sh
Description: Bourne shell script
