How to convert a Postman request to cURL Command

If you have an HTTP GET/POST or any other method request in the Postman and you want to convert it to a cURL command then you can follow the below steps.

  1. Make sure you are on the tab in which you want to get the cURL.
  2. Now locate the code icon at the top right </> and click on it.
  3. Make sure cURL is selected in the dropdown.
  4. Copy the snippet to the clipboard.
  5. And there you have the cURL for a request from Postman.
Example:
Postman request cURL Code snippet
curl --location 
--request POST 'http://localhost:8080/message?
user=101&date=2023-06-23&location=New%20York' \
--header 'Accept: application/json'

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!