Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.