KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am using Apache HTTPClient 4. I am doing very normal multipart stuff like this: val entity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE); entity.addPart("filename", new FileBody(new File(fileName), "application/zip").asInstanceOf[ContentBody]) entity.addPart("shared", new StringBody(sharedValue, "text/plain", Charset.forName("UTF-8"))); val post = new HttpPost(uploadUrl); post.setEntity(entity); I want to see the contents of the entity (or post, whatever) before I send it. However, that specific method is not implemented: entity.getContent() // not defined for MultipartEntity How can I see what I am posting?
Tags (comma-separated)
Save Edits
Cancel