LPM: testing tool for web pages and forms...

Joe Hourcle oneiros at dcr.net
Wed Nov 22 08:55:47 CST 2000



On Tue, 21 Nov 2000, David Pitts wrote:

> Has anyone seen/developed/come across/use/etc. a tool that can take a set of
> test data and hit a web site (such as filling out forms or "clicking" on
> buttons or url's) to ensure the code behind the web site is working
> properly?

It's normally just a matter of opening a TCP connection to the site, and
sending the correct information.  GET type operations are dirt easy.  With
POST operations, you need to generate the data to be sent, then send along
a Content-Length header with the size of the data string.

You may also need to forge the Referer header.

If you need to send cookies, I've never done it myself, but in theory it
should be easy, you'd just have to request the form first, so that you'd
get the appropriate cookies, then send them along with the form
submission.

If you're just going to be testing against the same data every time, the
simplest thing to do is to write the feedback form to post to an abnormal
port, then open up something to capture what gets sent to that port, send
the form, and then look at the output.  It should just take a few tweaks
to make it something that you can test the server with.

-----
Joe Hourcle





More information about the Lexington-pm mailing list