top of page

Linux - run the same URL parallelly using curl

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.

 
 
 

Recent Posts

See All
Split file by line number - Ubuntu

We can run the below command to split the large file in Ubuntu. split --numeric-suffixes=1 --additional-suffix=.csv -l 100 original.csv...

 
 
 

Comments


Follow Me

  • LinkedIn
  • Twitter
  • Facebook
  • YouTube
  • Instagram

©2021 by Bilal Usean. Proudly created with Wix.com

bottom of page