title: C# Async Webrequest
body: <p>I need to call a url like the following, programmatically, using C#:</p>
  
  <pre><code>http://mysite.com/AdjustSound.php
  </code></pre>
  
  <p>This php file expects a <code>SoundLevel</code> from me. So, an example call would be something like that:</p>
  
  <pre><code>http://mysite.com/AdjustSound.php?SoundLevel=30
  </code></pre>
  
  <p>I have 2 questions:</p>
  
  <h2>1:</h2>
  
  <pre><code>WebRequest request = 
     WebRequest.Create("http://mysite.com/AdjustSound.php?SoundLevel=30");
  // Which one?
  // request.Method = "GET";
  // request.Method = "POST";
  </code></pre>
  
  <p><strong>Question 1:</strong> Do I need to make a <code>GET</code> or <code>POST</code> request?</p>
  
  <h2>2:</h2>
  
  <p>Since, I'm making this http-call very frequently (10-20 times in a sec); I have some speed issues. So, I don't want my program to wait till this http call finishes and retrieves the result. I want that <code>Webrequest</code> to run asynchronously.</p>
  
  <p>The other issue is that I don't need to see the results of this http call. I just want to invoke the server side. And even, I don't care if this call finished successfully or not... (If it fails, most probably I will adjust the sound a few milliseconds later. So, I don't care.) I wrote the following code:</p>
  
  <pre><code>WebRequest request = 
       WebRequest.Create("http://mysite.com/AdjustSound.php?SoundLevel=30");
  request.Method = "GET";
  request.BeginGetResponse(null, null);
  </code></pre>
  
  <p><strong>Question 2 :</strong> Doest it seem ok to run this code? Is that ok to call <code>request.BeginGetResponse(null, null);</code> ?</p>
  
  <h1>EDIT</h1>
  
  <p>After reading the comments; I modified my code like the following:</p>
  
  <pre><code>WebClient webClient = new WebClient();
  Uri temp = new Uri("http://mysite.com/AdjustSound.php?SoundLevel=30");
  webClient.UploadStringAsync(temp, "GET", "");
  </code></pre>
  
  <p>Is that ok/better now?</p>