MultipartEntity is successor of HttpEntity, contained in HttpMime API since version 4.0. It's use is primary to simplify process of posting multipart content over HTTP. It allows to add multiple parts of different content-type and encoding.

learn more… | top users | synonyms

1
vote
1answer
5k views

Android: upload file with filling out POST body together

I do use MultipartEntity to send File to server, it appears correctly in $_FILES superglobal But I need also fill in POST body to be read via php://stdin How can I do that? current snippet below: ...
12
votes
3answers
1k views

Android error : MultipartEntity , request sent by the client was syntactically incorrect

I am suppose to send song (mp3/wav) file and some data through secure restful web service. I am using MultipartEntity to make HttpPost request. but When I execute it through HttpClient, the server ...
1
vote
2answers
688 views

UTF-8 encoding with FileBody in MultipartEntity

I want to set UTF-8 encoding while files sending in FileBody as I do it in a StringBuilder. I do it like this: restClient.AddEntity("body", new StringBody(body, Charset.forName("UTF-8"))); and it ...