Formulate POST request in curl
- by user1867256
I'm using curl to send POST request to web service http ://localhost 2325//Service
How can I desirialize body of the POST request into a variable which I could then access within my POST method ?
Can someone give me an example?
This is my method
[WebInvoke(RequestFormat = WebMessageFormat.Json, UriTemplate = "/user", Method = "POST")] public void Create(User us)
Class User contains user_id and user_name.
Can anyone please help?
All I need is an example how to formulate POST request in curl
Thanks