How to remove request header from HttpEntity while uploading file
问题 I am trying to send some message to mft server via REST API, and I'm using MultipartHttpEntityBuilder to build the message but along with original message some unwanted header and additional data is also getting attached. I found similar issue MultipartEntityBuilder: Omit Content-Type and Content-Transfer, but it was helpful. My Code snippet : HttpPut putRequest = new HttpPut(MFTSERVER_REST_LINK); MultipartEntityBuilder builder = MultipartEntityBuilder.create().setMode(HttpMultipartMode