|
||||||||
Hi Jim, [quoting corrected] >>wget --post-data 'Submit=Download' >>https://<username>:<password>@<host_ip>/diag_backup.php -O config.xml >I actually posted a shell script that does exactly this using curl >quite some time ago. Gee, if you are able to do that, I wonder why you top-post. Anyway: I have wget 1.8.1 on (Debian) Linux, wget 1.8.2 on OpenBSD 3.5 and wget 1.8.2 on cygwin (XP-SP1), none knows "--post-data" so I also had to resort to curl. My (very simple) script looks like this: #!/bin/sh nach="/work/BACK/m0n0_"`date +%Y%m%d`.xml curl --data 'Submit=Download' \ http://username:secret@192.168.x.x/diag_backup.php >$nach Regards Frederick |