title: Converting Form-data to HTTPClient post request
body: <p>I have this request from POSTMAN     </p>
  
  <pre><code>    POST /v1/files HTTP/1.1
  
      Postman-Token: ab620166-b3ce-c21f-0e29-97cd43111daa
      Content-Type: multipart/form-data; boundary=----    WebKitFormBoundary7MA4YWxkTrZu0gW
  
  ------WebKitFormBoundary7MA4YWxkTrZu0gW
   Content-Disposition: form-data; name="image1"; filename=""
   Content-Type: 
  
  
  ------WebKitFormBoundary7MA4YWxkTrZu0gW
  Content-Disposition: form-data; name="image2"; filename=""
  Content-Type: 
  
  ------WebKitFormBoundary7MA4YWxkTrZu0gW--
  </code></pre>
  
  <p>I have tried converting it to HTTPClient post as </p>
  
  <pre><code>    httpPost.addHeader("Content-Type", "multipart/form-data");
  
      HttpEntity entity = MultipartEntityBuilder
                  .create()
                  .setMode(HttpMultipartMode.BROWSER_COMPATIBLE)
                  .addBinaryBody("image1",new(File("/image1.jpg"))
                  .addBinaryBody("image2",new(File("/image2.jpg"))
                  .build();
  </code></pre>
  
  <p>I have also tried using bodyPart instead of addBinarybody... </p>
  
  <p>I still get a bad request from the server, Anything I am missing?</p>