How to use cURL to testRigor API call converter
In this guide, we’ll walk you through how to convert cURL to testRigor API call commands with our Converter.
- Follow the link to the converter above
- Add your cURL in the text area at the top of the page
- Click “Convert”
This will translate your cURL and display the corresponding testRigor API call command under Result.
Sample input:
curl -d '{"key1":"value1", "key2":"value2"}' -H "Content-Type: application/json" -X POST http://localhost:3000/data
Sample output:
call api POST "http://localhost" with header "Content-Type:application/json" and body text starting from the next line and ending with [END]
{
"key1": "value1",
"key2": "value2"
}
[END]