I have a script that hits an endpoint 50 times. After each of the requests I would like to cancel that request.
for i in $(eval echo {1..50})
do
curl --location --request GET 'localhost/endpoint' --header 'Content-Type: application/json' &
cancel request?
done