skip to Main Content

Upload File in form data using Java – Apache

I am trying to perform a HTTP Post Request in Java using the Apache API. With curl the request looks like this curl https://host/upload -X POST -H "Authorization: Bearer xxx" -H "Content-Type: multipart/form-data" -H "Accept: application/json" -F "file=@{PathToImage}" -F "type=file"…

VIEW QUESTION
Back To Top
Search