title: Call URL with GET parameters C#
body: <p>I have 2 sites, one of them is a web service and the other one is a "normal" site.</p>
  
  <p>In the "normal" site I have a page in which it send a mail by getting some parameter, so if in my browser I manually type this URL:</p>
  
  <pre><code>http://localhost/Web/page/page.aspx?id=23&amp;emailus=mail@mail.com
  </code></pre>
  
  <p>It creates a specific mail for that user for that id.</p>
  
  <p>The problem is that I want to call that URL in my web service, so when all data get created, after that it will send the mail from that URL, but I cant make it work, I've tried this:</p>
  
  <pre><code>System.Net.WebClient client = new System.Net.WebClient();
  client.DownloadDataAsync(new Uri("http://localhost/Web/page/page.aspx?id=" + idtable + "&amp;emailus=" + email));
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>            await Task.Run(() =&gt;
              {
                  var webClient = new System.Net.WebClient();
  
                  webClient.DownloadString("http://localhost/Web/page/page.aspx?id=" + idtable + "&amp;emailus=" + email);
  
              });
  </code></pre>
  
  <p>Both of them give my a timeout exception and the mail never sends.</p>
  
  <p>What should I do? Thanks. </p>