[ previous ] [ next ] [ threads ]
 
 From:  David Orman <david dot orman at orblivion dot com>
 To:  Matchstick <matchstick at oofg dot com>
 Cc:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Re: Re[2]: [m0n0wall] Automated config.xml remote backup - solution
 Date:  Thu, 21 Oct 2004 23:15:08 -1000
It works w/ wget 1.8.2 on freebsd using -post-data instead of 
--post-data.

Cheers,
David

On Oct 21, 2004, at 22:33, Matchstick wrote:

> Friday, October 22, 2004, 8:33:24 AM, Frederick Page 
> (fpage at thebetteros dot oche dot de) wrote:
>
> FP> Hi Jim,
>
> FP> [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.
>
> FP> Gee, if you are able to do that, I wonder why you top-post.
>
> FP> Anyway: I have wget 1.8.1 on (Debian) Linux, wget 1.8.2 on OpenBSD 
> 3.5
> FP> and wget 1.8.2 on cygwin (XP-SP1), none knows "--post-data" so I 
> also
> FP> had to resort to curl.
>
> FP> My (very simple) script looks like this:
>
> FP> #!/bin/sh
> FP> nach="/work/BACK/m0n0_"`date +%Y%m%d`.xml
>
> FP> curl --data 'Submit=Download' \
> FP> http://username:secret@192.168.x.x/diag_backup.php >$nach
>
> FP> Regards  Frederick
>
> I've managed to get the UnxUtils (http://unxutils.sourceforge.net/) 
> Win32
> Port of Wget v1.8.2 to work by using "-post-data" rather than 
> "--post-data".
>
> I don't have a *nix box to hand though, so I can't say whether that's
> specific to this particular port.
>
> -- 
> Matchstick
> matchstick at oofg dot com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: m0n0wall dash unsubscribe at lists dot m0n0 dot ch
> For additional commands, e-mail: m0n0wall dash help at lists dot m0n0 dot ch
>