Skip to content

Instantly share code, notes, and snippets.

@hassansin
Created May 26, 2015 12:55
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save hassansin/e1e9f78be4a2cf5b3ffe to your computer and use it in GitHub Desktop.
Save hassansin/e1e9f78be4a2cf5b3ffe to your computer and use it in GitHub Desktop.
Apache Bench Ajax POST
ab \
-n 1000 \
-c 20 \
-s 30 \
-p post-data.txt \
-T 'application/x-www-form-urlencoded; charset=UTF-8' \
-v 3 \
-H "X-Requested-With: XMLHttpRequest" \
-H "X-Ajax-Referer: http://example.com" \
-H "Accept-Encoding: gzip, deflate" \
-H "Accept-Language: en-US,en;q=0.8,bn;q=0.6" \
-H "User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36" \
-H "Accept: application/json, text/javascript, */*; q=0.01" \
-H "Referer: http://www.native-instruments.com/forum/members/" \
http://example.com
q=test&limit=10&skip=10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment