title: Download a json content by accessing the url
body: <p>This is my sample code. On execution, it gives the following error. "The remote name could not be resolved:www.javascriptkit.com". I have written this code in a WCF Service.</p>
  
  <pre><code>string url = "http://www.javascriptkit.com/dhtmltutors/javascriptkit.json";
  Uri uri = new Uri(url);
  HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri);
  request.Method = WebRequestMethods.Http.Get;
  HttpWebResponse response = (HttpWebResponse)request.GetResponse();
  StreamReader reader = new StreamReader(response.GetResponseStream());
  string output = reader.ReadToEnd();
  </code></pre>