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?
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?
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