I'm trying to use ab to test my webserver, but it only supports HTTP/1.1 (reject requests that have HTTP/1.0 in the first line). The -k switch only adds a header with connection: keep-alive.

Is it possible to make ab send HTTP/1.1 request?

link|improve this question
Why are you rejecting 1.0 requests? Be careful with that if this is to be publicly accessible; you'll break clients coming through some proxy servers. – Shane Madden Sep 30 '11 at 4:27
2  
You have two choices: modify ab to support HTTP 1.1, or modify your web server to support HTTP 1.0. (You can probably get away with just modify ab send send HTTP/1.1, but that's not ideal.) – David Schwartz Sep 30 '11 at 5:40
feedback

migrated from superuser.com Sep 30 '11 at 2:40

This question came from our site for computer enthusiasts and power users.

1 Answer

up vote 2 down vote accepted

how about using Siege, it is as easy to use as ab, but it supports HTTP/1.1:

http://www.joedog.org/index/siege-home

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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