Here I will explain how to read response from url. This will
read all the format like JSON, XML and any type of string.
using System.Net; string str = "Here Type URL"; using (WebClient webClient = new System.Net.WebClient()) { WebClient objWebClient = new WebClient(); var strcontent = objWebClient.DownloadString(str); string valueOriginal = Convert.ToString(strcontent); Console.WriteLine(strcontent); }
Comments
Post a Comment