How to pass multiple header in Apache Benchmark

dReAmEr picture dReAmEr · Apr 27, 2015 · Viewed 31.6k times · Source

I need to pass multiple header in Apache benchmark.

I have searched on SO and googled also,but no luck so far.

ab -n200 -c100 -H 'clientId:test-client;token:93e6acff-2ef9-4c85-9d0b-c9948a8ee93b' http://127.0.0.1/oauth2/user/client/

Answer

guke.name picture guke.name · Aug 27, 2015
ab -n200 -c100 -H "clientId:test-client"-H "token:93e6acff-2ef9-4c85-9d0b-c9948a8ee93b" -v 2 http://127.0.0.1/oauth2/user/client/

-v show request header