Linux - run the same URL parallelly using curl
- Bilal Malik
- Feb 22, 2023
- 1 min read
Below command will run the URL https://your-website-url/path 150 times parallelly with post data. In the below example, I have just added one dummy query string.
curl --header "Content-Type: application/json" --parallel --parallel-max 150 --request POST --data '{"param":"value"}' https://your-website-url/path?dummy=[1-150]
It is working for GET method as well. If you have other query strings in your URL, assign the sequence to a throwaway variable.
curl http://www.myurl.com/?myVar=111&dummy=[1-20]
I hope it helps.
Comments