Pass data in Json format to restAPI using httpwebrequest C#
I need to pass my json format data to API using httpwebrequest in c#
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Dipankar BiswasPosted May 8, 2015, 10:41 AM
see this link to help..http://stackoverflow.com/questions/5978928/post-json-with-rest-api-using-webreuest-from-wp7
Pradeep SahooPosted May 8, 2015, 10:27 AM
httpclient.Headers[HttpRequestHeader.ContentType] = "application/json";
if you are using WebAPI use like
client.PostAsJsonAsync(