Skip to content

Instantly share code, notes, and snippets.

@lamak-qaizar
Last active May 13, 2023 03:42
Show Gist options
  • Save lamak-qaizar/7240a053e574e3e2fb8d5a27875be4c4 to your computer and use it in GitHub Desktop.
Save lamak-qaizar/7240a053e574e3e2fb8d5a27875be4c4 to your computer and use it in GitHub Desktop.
ApacheBench 2.3 - Post request with headers
# 100 requests with 10 concurrent threads
# Headers: h1 and h2
# Query parameters: p1 and p2
# body.txt is the content of the body (supply blank file if no body)
ab -n 100 -c 10 -p ./body.txt -H "h1:value1" -H "h2:value2" -v 2 'http://url?p1=x&p2=y'
@paulomcnally
Copy link

Example of body content?

value=1

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment