I have the following curl command: curl -i -H "Content-Type: text/plain" -X POST -d @hundredencoded http:///aaa/bbb/message
For load testing, i need to run this command 100 times, how do i do it using CURL?
Thanks in advance.
You could achieve it by using the below script:
#!/bin/bash
for i in $(eval echo {1..$1})
do
curl -i -H 'Content-Type: text/plain' -X POST -d @hundredencoded http:///aaa/bbb/message &
done
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With