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> nach="/work/BACK/m0n0_"`date +%Y%m%d`.xml
FP> curl --data 'Submit=Download' \
FP> http://username:firstname.lastname@example.org/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 at oofg dot com