1. Convert JSON POST Request with Authentication
API DeveloperBackground
An API developer needs to import a complex cURL command containing basic authentication and a JSON payload into a tool that only supports HAR imports.
Problem
Manually recreating the headers, query parameters, and JSON body in the target tool is time-consuming and error-prone.
How to use
Paste the cURL command with the -u and -d flags into the input field and click convert.
curlCommand: curl -X POST 'https://api.example.com/users?source=demo' -H 'Content-Type: application/json' -u demo:secret -d '{"name":"Ada"}'
includeCreatorComment: trueOutcome
A valid HAR 1.2 JSON object containing the parsed method, URL, basic auth header, query parameters, and JSON postData.