title: HTTP request with post 404 not found
body: <p>I used the top answer from <a href="https://stackoverflow.com/questions/4015324/http-request-with-post">HTTP request with post</a>
  however an error pops up in visual studio saying 404 remote server not found. </p>
  
  <p>The website exists, it is a rails app bounded to the ip address of my router. 
  Using the following url in the browser updates the attribute of the applicant entity in the rails app. However using the c# app to do this is not working. </p>
  
  <pre><code>http://&lt;ADDRESS HERE&gt;:3000/api/v1/applicants/update?id=2&amp;door=true
  </code></pre>
  
  <p>I have the ff:</p>
  
  <pre><code>using System.IO;
  using System.Net;
  using System.Text; 
  </code></pre>
  
  <p>I used the following code inside a btn click</p>
  
  <pre><code>private void button1_Click (object sender, EventArgs e){
      var request = (HttpWebRequest)WebRequest.Create("http://&lt;ADDRESS HERE&gt;:3000/api/v1/applicants/update");
  
      var postData = "id=2";
          postData += "&amp;door=true";
      var data = Encoding.ASCII.GetBytes(postData);
  
      request.Method = "POST";
      request.ContentType = "application/x-www-form-urlencoded";
      request.ContentLength = data.Length;
  
      using (var stream = request.GetRequestStream())
      {
          stream.Write(data, 0, data.Length);
      }
  
      var response = (HttpWebResponse)request.GetResponse();
  
      var responseString = new StreamReader(response.GetResponseStream()).ReadToEnd();
  }
  </code></pre>