[3731] in WWW Security List Archive
Re: command line html commands
daemon@ATHENA.MIT.EDU (Steff Watkins)
Fri Dec 6 13:48:26 1996
Date: Fri, 6 Dec 1996 15:50:37 +0000 (GMT)
From: Steff Watkins <Steff.Watkins@Bristol.ac.uk>
To: www-security@ns2.rutgers.edu
In-Reply-To: <32A6B7F5.4E1A@90.deere.com>
Errors-To: owner-www-security@ns2.rutgers.edu
On Thu, 5 Dec 1996, Bertrum Carroll wrote:
> Is it possible to do a http request via a script or command line?
> Goal is to preload "stuff" in to a proxy
> And to do a SSL Post via a cron tab.
Hello,
the 'trick' I use here involves the use of Perl5.003.
You should get and compile Perl5.003 (like you haven't already???) and
then add the LWP module package.
Once it is installed, you can then do whizzy things like the following:
perl -MLWP::Simple -e 'getprint "http://sw.cse.bris.ac.uk/"'
This will call Perl, with the LWP module, and tell it to 'get and print'
the webpage with the URL of http://sw.cse.bris.ac.uk/.
There are other options such as getfile, which gets the webpage and saves
it to a file.
Perl5.003 and the LWP module package are available from www.perl.com (as
far as I remember).
It is then just a trivial matter to get it setup in a cron job.
Steff
: Steff Watkins, General Computer-type being
: University of Bristol, Clifton, Bristol, BS8 1TH, UK
:
: RFC-822 : Steff.Watkins@bris.ac.uk
: X-400 : /G=Steff/S=Watkins/O=Bristol/PRMD=UK.AC/ADMD= /C=GB/
: Phone: +44 177 9287869 (external) 3046 / 7869 (internal)