0

I am trying to upload a file (and additional fields) using single REST POST request. This request has to be processed asynchronous and form has to be submitted using multipart-form content type (because beside file I am sending few other text fields with certain metadata).

I tried with Apache's org.apache.http.impl.nio.client.CloseableHttpAsyncClient but until now I didn't succeed (when request arrives on the server, fields from the form are not presented). When I do the same using org.apache.commons.httpclient.HttpClient request is processed without problems, so the issue is not on the server side.

Does anybody know how this async 'multipart-form' request could be made? If not possible with CloseableHttpAsyncClient, do you have some other library to suggest?

Thanks in advance...

nteo
  • 11
  • 2

1 Answers1

0

I just want to give an update. I did some investigation and was able to fulfill my requirements with AsyncHttpClient (AHC)

It works very fast and is based on Netty Framework and NIO Java API.

nteo
  • 11
  • 2