tags:

views:

54

answers:

0

I'm trying to benchmark a development site, with the biew of proposing a change to the production server setup.

The most 'logic' intensive part fo the site is the product search as it dynamically expands the criteria if no results are found.

The form uses POST, so using the Live Headers plugin in Firefox I trapped the POST data and added it to a file post.test

Product=211&SubProduct=&Price=1250-2000&form_id=search_form&submit=Find

and tried to use the folliwng ab2 command:

ab2 -n 1 -c 1 -p post.test -v 4 http://perf.site.com/

I then tried it with the content type header that Live Headers reported:

ab2 -n 1 -c 1 -p post.test -T "application/x-www-form-urlencoded" -v 4 http://perf.site.com/

I know the post.test file works if I use wget

 wget --post-file=post.test http://perf.site.com/

I am trapping the POST data in the application to test if it has worked.

There also appears to be no information on how to use the POST data feature of ab2 online.

Any help is appreciated.

Thanks,

Phil