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.
- Make sure you are on the tab in which you want to get the cURL.
- Now locate the code icon at the top right </> and click on it.
- Make sure cURL is selected in the dropdown.
- Copy the snippet to the clipboard.
- And there you have the cURL for a request from Postman.

curl --location
--request POST 'http://localhost:8080/message?
user=101&date=2023-06-23&location=New%20York' \
--header 'Accept: application/json'
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!