?
Solved

perl script - web site login test

Posted on 2009-05-05
3
Medium Priority
?
791 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
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…
Six Sigma Control Plans
Suggested Courses

777 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