Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any tool that will replay combined access.log-style (or any other format) files back and preserve the cookies?

We need to load test our application with real user accesses but we really need those cookies there. I evaluated JMeter (won't work, you can enable a cookie jar but not read cookies from the log), httperf (also simulates cookie jar), siege (same) and I am stuck.

There are plenty of other tools out there but I couldn't find any that would send cookies along.

share|improve this question
The combined log format doesn't include cookies. Where are you going to get them from? – womble Aug 15 '11 at 12:26
I added the Cookie header to the end of each line. – guilherme Aug 15 '11 at 12:49

It's not exactly rocket science to script this.

But it rather presupposes that:

  1. you've logged the relevant cookies

  2. there are no POSTs on the site

  3. there is no session fixation protection on the site

  4. indeed, that the session management is very, very crude.

libcurl supports setting cookies explicitly before the call

share|improve this answer
All those conditions hold true. And yes, scripting will be the next step if nothing comes up, but there are advantages to using a tool (it's presumably already tested, comes with neat options to control throughput and generate reports, and so on.). – guilherme Aug 15 '11 at 12:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.