In curl -F
means post the form data, usually the content type is multipart/form-data
. You can use the Apache HttpClient library for this purpose in Java
.
Here is an example of posting form using MultipartRequestEntity. Before looking into this example, I’ll suggest you to try this example to be habituated with normal http POST
.
1
solved How to achieve curl in java? [closed]