Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Check form mechanize allows you to fill in and submit a submit a form and then check the result for an expected string. This script uses mechanize to emulate a browser.
Current Version
0.1
Last Release Date
2010-09-07
Owner
Tim
License
GPL
Compatible With
usage: check_form_mech.py [-h] -u URL -f FORMNAME -n VALUES [-w WARNING] [-c CRITICAL] [-v] -e EXPECT
optional arguments: -h, --help show this help message and exit -u URL, --url URL url string e.g -u http://foobar.com -f FORMNAME, --formname FORMNAME name of the form e.g -f login -n VALUES, --values VALUES values for input e.g -n "login=foo&password=bar" -w WARNING, --warning WARNING time in seconds before warning e.g -w 5 -c CRITICAL, --critical CRITICAL time in seconds before critical e.g -c 10 -v, --verbose print out nagios timing information -e EXPECT, --expect EXPECT string to find on returned web page e.g -e "Hello Sweetie"
This is my first bit of python so if you want to point out my mistakes please do!
You must be logged in to submit a review.
To:
From: