Steevo Wiki

You are here: Home » linux » curl

Linux:curl

Send parallel curl requests

Create a curl-config.txt file with content:

url = "https://my-api-url"
request = "PATCH"
header = "Content-Type: application/json"

url = "https://my-api-url"
request = "PATCH"
header = "Content-Type: application/json"

url = "https://my-api-url"
request = "PATCH"
header = "Content-Type: application/json"

Then export TOKEN variable and run curl command:

TOKEN=xxx
curl --config curl-config.txt --parallel --parallel-max 3 --header "Authorization: $TOKEN" --data '{"value": "change3"}'