title: POST throws HttpRequestMessage does not contain a definition for Form
body: <p>I am trying to get POST data in C# and everything I have read says to use </p>
  
  <pre><code>Request.Form["parameterNameHere"]
  </code></pre>
  
  <p>I am trying that, but I get an error saying </p>
  
  <blockquote>
    <p>System.Net.Http.HttpRequestMessage does not contain a definition for Form and no extension method for Form.'</p>
  </blockquote>
  
  <p>The method in question is </p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Net;
  using System.Net.Http;
  using System.Web.Http;
  using System.Web.HttpRequest;
  
  namespace TextServer.Controllers
  {
  public class TextController : ApiController
  {
      // POST api/&lt;controller&gt;
      public HttpResponseMessage Post([FromBody]string value)
      {
          string val = Request.Form["test"];
          HttpResponseMessage response = new HttpResponseMessage();
          response.Content = new StringContent("Your message to me was: " + value);
          return response;
      }
  </code></pre>
  
  <p>Any help is greatly appreciated.</p>