Take the 2-minute tour ×

I want to pass List of Objects, say Drivers, in HTTP POST Request. While NameValuePair takes only Strings. How I can pass it with HTTP POST Request?

share|improve this question

2 Answers 2


StringEntity ss= new StringEntity(yourObj.toString());
        // Set HTTP parameters

I think it will help you.

share|improve this answer

i think this post will be helpful to you

Sending a serialized object from Android to a servlet using HTTP client

they suggests to use JSON or XML

share|improve this answer

Your Answer

