.NET Core 2 equivalent of curl command [duplicate]
Primarily using WebRequest or HttpClient. Can you have a read through the following: https://docs.microsoft.com/en-us/aspnet/web-api/overview/advanced/calling-a-web-api-from-a-net-client
I use the above classes a lot when writing code that interacts with a Web API.
I don't know how to use "CURL" to do what you're asking, the aforementioned techniques is generally what's used when talking to a web API.