Solved

perl script - web site login test

Posted on 2009-05-05
3
782 Views
Last Modified: 2012-05-06
Looking for a script to run which would simulate a user going to a site logging in - this would be run for availability check only. I am not looking for this to be any type of load testing, just a is it working tool.

I am looking to get pointers on how to write a perl script which would,
logon to a https web site , see if logon works, and also report back the data in the cookie.

http://johnbokma.com/perl/https.html
This page gives an example how to get to a https site.

Now looking for example code for logging into the site ( POST ) , check for a string on the next page.
And reporting back the cookie information.

Thanks,
Mark
0
Comment
Question by:markpalinux
  • 2
3 Comments
 
LVL 15

Author Comment

by:markpalinux
ID: 24313774


I believe I found a good resource here:
http://www.ibm.com/developerworks/linux/library/wa-perlsecure.html

it is dated 2006, if anyone used different method recently please let me know.

Mark
0
 
LVL 39

Accepted Solution

by:
Adam314 earned 500 total points
ID: 24315981
The WWW::Mechanize module could be used.  It would only be a few lines to have it log in:
    http://search.cpan.org/~petdance/WWW-Mechanize-1.54/lib/WWW/Mechanize.pm
0
 
LVL 15

Author Closing Comment

by:markpalinux
ID: 31578307
I was able to use WWW::Mechanize to logon to website for testing.
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question