[httperf] form-based authentication with httperf
jim at kongregate.com
Fri Apr 11 13:42:10 PDT 2008
Thanks Elliot, this worked great. The only downside is that all the
connections will be logged in as the same user, which makes the db access
pretty unrealistic. But overall I think it will work for us.
On Wed, Apr 9, 2008 at 6:23 PM, Elliot Temple <curi at curi.us> wrote:
> On Apr 9, 2008, at 6:01 PM, Jim Greer wrote:
> > Does anyone have info on how to get the http clients to login via a web
> > form
> > and maintain that session? We would need the different connections to be
> > different users.
> > This is for load testing a new server cluster for Kongregate.com - as
> > well
> > as doing regular benchmarking in the future.
> Here's a quick example:
> httperf --hog --session-cookie --server=www.server.com --port=80
> --wsesslog=100,0,sessionfilename --rate=5
> and in the session file:
> /sessions method=POST contents='login=elliot&password=temple'
> so the main trick is the --wsesslog option which is detailed on the man
> pages, and being able to send a post
> method=POST contents='login=elliot&password=temple'
> which i copied from somewhere or other
> -- Elliot Temple
660 Mission St, Suite 400
San Francisco, CA 94105
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the httperf