Formulate POST request in curl

Posted by user1867256 on Stack Overflow See other posts from Stack Overflow or by user1867256
Published on 2012-12-01T04:50:04Z Indexed on 2012/12/01 5:03 UTC
Read the original article Hit count: 104

Filed under:
|
|
|

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

© Stack Overflow or respective owner

Related posts about c#

Related posts about rest