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

We use apache as our web server and it has mod_deflate enabled.

We have been using httperf to test it for load but we've not been able to get it to talk to the webserver with gzip/deflate encoding enabled in httperf.

I tried --add-header='Accept-Encoding : gzip, deflate' to httperf's command line parameters, but my apache simply doesn't respond to that(http perf reports 0 response rate)

Although Apache Bench(ab) accepts gzip/deflate encoding, we want to use httperf because we are interested in keeping the server loaded with X requests per second which ab doesn't support.

Is there a way to use httperf with g-zip/deflate encoding enabled ? Are there other command line load testing tools that'll do this ?

share|improve this question
up vote 2 down vote accepted

Did you add \n to the --add-header? Would --add-header='Accept-Encoding: gzip,deflate\n' work?

share|improve this answer
thnx a ton – letronje Aug 27 '10 at 11:32
No problem, have a nice weekend :) – Janne Pikkarainen Aug 27 '10 at 11:36

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.