Hi, I need to convert CURL to POSTMAN and have reviewed some of the documentation.
Iāve attempted adjusting the CURL request and still receive the same error message which is āerror while importing curl uri malformedā
Please help me find a solution to this error. Iām looking to convert this to Postman. The CURL code is:
curl -X POST -d ā{ādomainNameā:ā%GIVEN_DOMAIN_NAME%",āreconciliationā:"%GIVEN_RECONCILIATION%",ātypeā:"%GIVEN_REQUEST_TYPE%",āinputFileā:"%GIVEN_FILEPATH%",āstoreResultsā:"%GIVEN_STORE_RESULTS%",āreportToEmailā:"%GIVEN_EMAIL_REPORT%"}" -H %HEADER_1% %API_URL% -u %GIVEN_API_AUTH%
This curl command includes variables that will resolve in PowerShell or a Windows command prompt. You can convert these to Postman-style variables. You will need to either replace them once the request is imported or youāll need to keep them and use something like an Environment to store these variable values.
To convert between variable syntax types, change something like %API_URL% to {{API_URL}}.
Reworked example:
curl -X POST -d ā{ādomainNameā:ā{{GIVEN_DOMAIN_NAME}}",āreconciliationā:"{{GIVEN_RECONCILIATION}}",ātypeā:"{{GIVEN_REQUEST_TYPE}}",āinputFileā:"{{GIVEN_FILEPATH}}",āstoreResultsā:"{{GIVEN_STORE_RESULTS}}",āreportToEmailā:"{{GIVEN_EMAIL_REPORT}}"}" -H {{HEADER_1}} {{API_URL}} -u {{GIVEN_API_AUTH}}