title: Fill Form C# & Post Error
body: <p>I took an example of filling in a form in C# from another question, but when I run the code I just get the page back again (as if i didn't submit anything).  I tried manually going to the URL and added <code>?variable=value&amp;variable2=value2</code> but that didn't seem to pre-populate the form, not sure if that is why this isn't working.</p>
  
  <pre><code>private void button2_Click(object sender, EventArgs e)
  {
      var encoding = new ASCIIEncoding();
      var postData = "appid=001";
      postData += ("&amp;email=chris@test.com");
      postData += ("&amp;receipt=testing");
      postData += ("&amp;machineid=219481142226.1");
      byte[] data = encoding.GetBytes(postData);
  
      var myRequest =
         (HttpWebRequest)WebRequest.Create("http://www.example.com/licensing/check.php");
      myRequest.Method = "POST";
      myRequest.ContentType = "application/x-www-form-urlencoded";
      myRequest.ContentLength = data.Length;
      var newStream = myRequest.GetRequestStream();
      newStream.Write(data, 0, data.Length);
      newStream.Close();
  
      var response = myRequest.GetResponse();
      var responseStream = response.GetResponseStream();
      var responseReader = new StreamReader(responseStream);
      label2.Text = responseReader.ReadToEnd();
  }
  </code></pre>