Set JSON Response In Webrequest Class
To set the JSON response of a WebRequest class, assign the ContentType property of the WebRequest object to application/json; charset=utf-8.
Source: Stackoverflow
req.ContentType = "application/json; charset=utf-8";
Comments
Post a Comment