Donate

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.
req.ContentType = "application/json; charset=utf-8";
Source: Stackoverflow

Comments

Donate

Popular Posts From This Blog

WPF CRUD Application Using DataGrid, MVVM Pattern, Entity Framework, And C#.NET

Remove Cookies From CookieContainer Class

How To Test Or Check Dead Pixels And Backlight Bleed On Your Monitor Using Dead Pixel Checker In Windows 11