title: C# - How to make a HTTP call
body: <p>I wanted to make an HTTP call to a website. I just need to hit the URL and dont want to upload or download any data. What is the easiest and fastest way to do it.</p>
  
  <p>I tried below code but its slow and after 2nd repetitive request it just goes into timeout for 59 secounds and than resume:</p>
  
  <pre><code>WebRequest webRequest = WebRequest.Create("http://ussbazesspre004:9002/DREADD?" + fileName);
  webRequest.Method = "POST";
  webRequest.ContentType = "application/x-www-form-urlencoded";
  webRequest.ContentLength = fileName.Length;
  
  Stream os = webRequest.GetRequestStream();
  os.Write(buffer, 0, buffer.Length);
  os.Close();
  </code></pre>
  
  <p>Is using the WebClient more efficient??</p>
  
  <pre><code>WebClient web = new WebClient();
  web.UploadString(address);
  </code></pre>
  
  <p>I am using .NET ver 3.5</p>