sam said:
Hi,
I m not a perl expert.
I would like to write a simple perl script to automatically login my
email account that hosted by a commerical webmail server.
Is there any sample script I can follow?
Thanks
Sam
try LWP::UserAgent from CPAN (actually it already came with my Linux
installation).
I just started playing with it and was able to get into a site I created but
I then tried submitting data to some commercial sites and my script was
rejected with the same form data I was able to submit legitimately through
their webpage. I am not sure how to 'trick' the site into not knowing if
it is a web browser or a Perl script trying to submit form data. I can get
as far as looking at the html source, finding the form, identifying POST or
GET, and finding the field names.
Since I was able to log into my own homemade site, I know it works and is
not a Perl issue. 'Perl Cookbook' has a brief section on LWP and there is
probably more in Lincoln Stein's book on Perl networking.
wana