Solved

perl script - web site login test

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
remove duplicates from the csv file 13 102
Port 80 requests 16 87
problem with using the glob function 1 63
use google analytics code in perl script 2 64
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
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…
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…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 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

20 Experts available now in Live!

Get 1:1 Help Now