Solved

perl script - web site login test

Posted on 2009-05-05
3
780 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now