Stress login-area with Siege

I need testing the performance of the reserved area of my website. I want use Siege for this goal.

For accessing to reserved area you must be logged to my site.

How can I send with Siege a Login-Cookie to my web application ?


It's only mentioned in the default .siegerc file (and not in the online manual or man page), but:

# Login URL. This is the first URL to be hit by every siege
# client. This feature was designed to allow you to login to 
# a server and establish a session. It will only be hit once
# so if you need to hit this URL more then once, make sure it
# also appears in your urls.txt file.
#
# ex: login-url = http://eos.haha.com/login.jsp POST name=jeff&pass=foo
#
# login-url = 

So you're not exactly pre-setting the login cookie. Instead, you're instructing each siege worker to login to your site once before any other requests, and they will retain their authenticated status until siege terminates.

Alternatively, you could set the user-agent to a special string, and then watch for that special user agent in your authentication code and automatically log that visitor in.