Make apachebench(ab) send HTTP1.1 request?
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?
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
A way found in CMU's 15-441:
perl -pi -e 's/HTTP\/1.0/HTTP\/1.1/g' /usr/bin/ab
Hacky, but it works! :D