Question

Basing on this response I have learnt which I must use MultipartEntity in order to send an http post request with a body and parameters.

What I don't know is: once the request arrives on server side, does it have to manage in a different way the requests with a multipart entity and those with just an entity?

This question because I am developing a library and I have to choose how to send post requests to a server, if I can always use MultipartEntity (which is more general) or if I have to let the user to choose what to use.

Was it helpful?

Solution

You talk about "the server" as if all servers are the same. I know from experience that some servers will require you to handle it differently though. In my case I'm thinking of Java+Tomcat+apache-httpcommons

In short, yes, some servers will require it to be handled differently.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top