How to use cURL to testRigor API call converter

Created by Lester Coyoy, Modified on Wed, 2 Jul at 8:42 PM by Lester Coyoy

In this guide, we’ll walk you through how to convert cURL to testRigor API call commands with our Converter.

  1. Follow the link to the converter above
  2. Add your cURL in the text area at the top of the page
  3. 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]

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article