title: Why is my controller not found?
body: <p>I started playing around with Web Api by creating a Web API and a Client, all worked fine until I switched from <code>GetAsync()</code> to <code>PostAsync()</code>, now I get a 404 response each time, why could this be? </p>
  
  <p><strong>Server Side Code</strong></p>
  
  <pre><code>[HttpPost]
  [Route("users/verifyLoginCredentials/{username}/{password}")]
  public IHttpActionResult VerifyLoginCredentials(string username, string password)
  {
              var verificationResult = Models.User.VerifyLoginCredentials(username, password);
              if (verificationResult)
              {
                  return Ok("Login Successful");
              }
  
         return BadRequest("Login Failed");
  }
  </code></pre>
  
  <p><strong>.Net 4.5 Client Code</strong></p>
  
  <pre><code>static async Task&lt;Uri&gt; verifyLoginCredentials(string username, string password)
  {
     HttpClient client = new HttpClient();
  
      client.BaseAddress = new Uri("http://localhost:4685/");
      client.DefaultRequestHeaders.Accept.Clear();
      client.DefaultRequestHeaders.Accept.Add(
          new MediaTypeWithQualityHeaderValue("application/json"));
  
      var value = new Dictionary&lt;string, string&gt;
      {
         { "username", "hello" },
         { "password", "world" }
      };
  
      var content = new FormUrlEncodedContent(value);
      var result = await client.PostAsync("users/verifyLoginCredentials/", content);
      string resultContent = await result.Content.ReadAsStringAsync();
  
  
      result.EnsureSuccessStatusCode();
  
      // return URI of the created resource.
      return result.Headers.Location;
  }
  </code></pre>