Solved

perl script - web site login test

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
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…
Six Sigma Control Plans

690 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