Created
December 15, 2017 15:29
-
-
Save orasik/25a08d774655d028bae58a8552edc435 to your computer and use it in GitHub Desktop.
Send n number of requests to API using CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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