55

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/
dReAmEr
  • 6,986
  • 7
  • 36
  • 63
  • 3
    If it's anything like cURL, you can just use `-H` multiple times. Here's a page with an example: http://www.cyberciti.biz/faq/linux-unix-appleosx-bsd-curl-sending-http-host-header/ – pieman72 Apr 28 '15 at 04:05

1 Answers1

87
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

Ali MasudianPour
  • 14,329
  • 3
  • 60
  • 62
guke.name
  • 886
  • 8
  • 3