Skip to content

Instantly share code, notes, and snippets.

@orasik
Created December 15, 2017 15:29
Show Gist options
  • Save orasik/25a08d774655d028bae58a8552edc435 to your computer and use it in GitHub Desktop.
Save orasik/25a08d774655d028bae58a8552edc435 to your computer and use it in GitHub Desktop.
Send n number of requests to API using CLI
# This will send 500 POST request to yourdomain.com
# this snippet can be used to send some data to your local dev API
for n in {1..500}; do curl -X POST \
http://yourdomain.com \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-d '{
"key" :"value"
}'; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment