How to make and check a request with content-type as 'application/json'?
Posted
by kranthi
on Stack Overflow
See other posts from Stack Overflow
or by kranthi
Published on 2010-04-29T13:48:26Z
Indexed on
2010/04/29
14:27 UTC
Read the original article
Hit count: 337
hi all, In my asp.net page I have a webmethod which will return data in json.I would like to run this method only when the http request content-type is 'application/json'.I do not understand how do I make a request with content-type as 'application/json' and how to check if the request content-type is 'application/json'?
Please help..
Thanks.
© Stack Overflow or respective owner