title: How to Post Data to a website through win forms c#
body: <p>I have an api where in I can post some data n submit and then get whether posted data is valid or no. This api redirects to different urls indicating sucess/failure.
  For ths what I normally do is , within html tags call the destination url and submit the page:</p>
  
  <pre><code>    &lt;form method="post" action="https://web.tie.org/verify.php" name="main"&gt;
  &lt;table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" valign="top"&gt;
      &lt;tr&gt;
          &lt;td class="normal"&gt;&amp;nbsp;&lt;/td&gt;&lt;td class="normal"&gt;&lt;input type='text' class='text' name='Email' value='x@hotmail.com' size='15' maxlength='35'&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/form&gt;
  &lt;script language='javascript'&gt;
  
  document.forms[0].submit();
  
  &lt;/script&gt;
  </code></pre>
  
  <p>Is there a way to post data directly through winforms c#. 
  I want to be able to access the success/failure url after post and get the query string of the redirected site.</p>
  
  <p>With Reference to <a href="https://stackoverflow.com/questions/5401501/how-to-post-data-to-specific-url-using-webclient-in-c-sharp">enter link description here</a> I have tried posting but I need the result query string.</p>
  
  <p>Right now I can achieve this by:</p>
  
  <pre><code>webBrowser1.Url = new Uri("C:\\Documents and Settings\\Admin\\Desktop\\calltie.html");            
  webBrowser1.Show();
  </code></pre>