[ previous ] [ next ] [ threads ]
 
 From:  monideth dot pen at unitednetworks dot co dot uk
 To:  Frederick Page <fpage at thebetteros dot oche dot de>
 Cc:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Re: [m0n0wall] Automated config.xml remote backup - solution
 Date:  Fri, 22 Oct 2004 09:05:31 +0100
All,

I am using Fedora Core 2 and my version of wget is 1.9 (GNU Wget 
1.9+cvs-stable (Red Hat modified))

It seems from what Frederick has found out wget get does not support POST 
commands in 1.8.1 and 1.8.2

As Frederick and Jim pointed out, the equivalent can be done using curl.

Regards,

Mon

Note: Please take note of our new office contact numbers.

====================================================================

Monideth Pen

IP Product Engineering Manager

Email:          monideth dot pen at unitednetworks dot co dot uk

Mobile:         +44 (0)7801 665563

--------------------------------------------------------------------

HQ                                       Switch Site

     United Networks Ltd.                     United Networks Ltd.
     Network House                            2nd Floor Challenger House
     15 High Street                           42 Adler Street
     Hampton Hill                             London E1 1EE
     Middlesex  TW12 1NB                      UK
     UK 

DDI: +44 (0)20 8635 5570                 DDI: +44 (0)20 7177 6023

Tel: +44 (0)20 8635 5555                 Tel: +44 (0)20 7177 6000
Fax: +44 (0)20 8635 5550                 Fax: +44 (0)20 7177 6060

http://www.unitednetworks.co.uk          http://www.veloxnet.com

--------------------------------------------------------------------

IM:             ICQ     - 53372490
                Yahoo!  - monideth at yahoo dot com
                MSN     - monideth at hotmail dot com

====================================================================






Frederick Page <fpage at thebetteros dot oche dot de>
22/10/2004 08:33
 
        To:     m0n0wall at lists dot m0n0 dot ch
        cc: 
        Subject:        Re: [m0n0wall] Automated config.xml remote backup 
- solution


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



---------------------------------------------------------------------
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