[httperf] form-based authentication with httperf

Jim Greer 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:
>
> /
> /login
> /sessions method=POST contents='login=elliot&password=temple'
> /protectedpage
> /otherprotectedpage
>
>
>
> 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
> http://curi.us/
>
>
>


-- 
Jim Greer
CEO, Kongregate
660 Mission St, Suite 400
San Francisco, CA 94105
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://napali.hpl.hp.com/pipermail/httperf/attachments/20080411/607e5a0d/attachment.htm


More information about the httperf mailing list