title: How to get form data from Postman To WebApi
body: <p>I want to receive form data from Postman:</p>
  
  <p><a href="https://i.stack.imgur.com/eYfxB.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/eYfxB.jpg" alt="enter image description here"></a> </p>
  
  <p><code>Content-Type: application/json</code></p>
  
  <p>Here is WebApi method:</p>
  
  <pre><code>[HttpPost]
  [Route("api/test")]
  public async Task TestMethod(HttpRequestMessage request)
  {
      var test = await request.Content.ReadAsStringAsync();
  }
  </code></pre>
  
  <p>What I'm getting is: </p>
  
  <pre><code>------WebKitFormBoundarypqDvmeG89cBR9mK9
  Content-Disposition: form-data; name="test"
  
  esad
  ------WebKitFormBoundarypqDvmeG89cBR9mK9--
  </code></pre>
  
  <p>But I don't want data with <code>WebKitFormBoundary</code> and I've restriction to use formdata only. Is there any other way?  </p>
  
  <p>HTTP call information:</p>
  
  <pre><code>POST /api/test HTTP/1.1
  Host: localhost:16854
  Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
  Cache-Control: no-cache
  Postman-Token: 1a3d6427-4956-707d-da0c-3a29a63c7563
  
  ------WebKitFormBoundary7MA4YWxkTrZu0gW
  Content-Disposition: form-data; name="test"
  
  esad
  ------WebKitFormBoundary7MA4YWxkTrZu0gW--
  </code></pre>
  
  <p>Curl call information:</p>
  
  <pre><code>curl -X POST \
    http://localhost:16854/api/test \
    -H 'cache-control: no-cache' \
    -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
    -H 'postman-token: 02055873-e9a8-e9a6-019c-b407992b0e2f' \
    -F test=esad 
  </code></pre>