Apps HTTP POST (String,Arraylist)

Can someone help me build and HTTP POST code snippet which receives the URL, POST a Name(String)/Value(ARRAYLIST) and returns an InputStream?

I've searched and searched and searched for this for almost 2 weeks and I only can get methods using the NameValuePair which only allows String,String.. I've tried to create a class that implements NameValuePair on which I would allow String, Arraylist but I don't know how to do it...

Can someone please help me with this?