Problem Description
I am calling my Java webservice (POST request) via Postman in the following manner which works perfectly fine (i.e. I can see my records getting inserted into the database):
[![enter image description here][1]][1]
And, here's how the contents inside the `Headers(1)` tab look like:
[![enter image description here][2]][2]
Instead of calling it via Postman, I have to call the same request in PHP using cURL. I am wondering if there's a way to export this command to a `curl` command so that I could use it in my PHP code? I have found the opposite approach at many places online where someone is asking to convert a curl based request to Postman but couldn't figure out how to do the opposite.
I found this question for curl to Postman: https://stackoverflow.com/questions/27957943/simulate-a-specific-curl-in-postman
[1]: https://i.sstatic.net/M1D5Y.png
[2]: https://i.sstatic.net/uwVrt.png
AI-Generated Solution
Powered by LMSouq AI · GPT-4.1-mini
Analyzing problem and generating solution…
Was this solution helpful?