[ previous ] [ next ] [ threads ]
 
 From:  Frederick Page <fpage at thebetteros dot oche dot de>
 To:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Re: [m0n0wall] Automated config.xml remote backup - solution
 Date:  Fri, 22 Oct 2004 09:33:24 +0200
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