Home > Archive > PERL Programming > August 2004 > i need a http perl script
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
i need a http perl script
|
|
| Nancy Drew 2004-08-11, 3:57 pm |
| hi all
it's been years since i've worked with perl, so i'd rather use prefad code.
i've got a client who is concerned that a perl http client could login to
his server and query a set of forms, downloading all the data. i'm writing
some asp code to limit the number of queries that can be run within a set
time frame, and think this should work fine, but would like to be able to
test my code. does anybody know where i can find a perl script that can
connect to a web site, login with username/password, and make requests of a
form?
tks
| |
|
|
| Andrew Bryson 2004-08-28, 8:55 pm |
| "Nancy Drew" <genpub5@hotmail.com> wrote in message
news:XVoSc.1630423$Ar.769857@twister01.bloor.is.net.cable.rogers.com...
> it's been years since i've worked with perl, so i'd rather use prefad
> code.
> i've got a client who is concerned that a perl http client could login to
> his server and query a set of forms, downloading all the data. i'm writing
> some asp code to limit the number of queries that can be run within a set
> time frame, and think this should work fine, but would like to be able to
> test my code. does anybody know where i can find a perl script that can
> connect to a web site, login with username/password, and make requests of
> a
> form?
There is a package on cpan.org called LWP that implements that sort of
functionality. From there it is a simple matter to write a program that
calls LWP and uses it to login to remote sites and retrieve data from them.
Andrew Bryson
http://www.bryson.co.nz
|
|
|
|
|