title: POST multipart/form-data postman vs python request
body: <p>I want to send a multipart/form-data as a post body using python request but I am not getting bad request issue.</p>
  <pre><code>import requests
  headers = {&quot;Content-Type&quot;: &quot;multipart/form-data&quot;}
  
  
  data = {
      &quot;@context&quot;: &quot;http://semantro.com/&quot;, &quot;@type&quot;: &quot;KiranaSearch&quot;, &quot;actionName&quot;: &quot;listCategoryProducts&quot;,
      &quot;pageLimit&quot;: {&quot;@context&quot;: &quot;http://semantro.com/&quot;, &quot;@type&quot;: &quot;PageProperty&quot;, &quot;start&quot;: 0, &quot;end&quot;: 24},
      &quot;data&quot;: {&quot;@context&quot;: &quot;http://semantro.com/&quot;, &quot;@type&quot;: &quot;KiranaCategory&quot;,
               &quot;identifier&quot;: &quot;c5394d1d5c6c4cb8-adc77dd996876dba&quot;}
  }
  
  response = requests.post('https://merokirana.com/semantro-web-interface/query',
                           data=data, headers=headers)
  
  print(response.text)
  </code></pre>
  <p>Response</p>
  <pre><code> {
    &quot;statusTitle&quot; : &quot;ServiceUnsuccessful&quot;,
    &quot;statusMessage&quot; : &quot;Invalid type of data received. The request  should have multipart query data.&quot;,
    &quot;@context&quot; : &quot;http://semantro.com&quot;,
    &quot;@type&quot; : &quot;RemoteServiceStatus&quot;
  }
  </code></pre>
  <p>But I can retrieve the required data using postman the same formdata.</p>
  <p><a href="https://i.stack.imgur.com/xAvL2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xAvL2.png" alt="enter image description here" /></a></p>