title: How to use Apache HTTPClient's post method to send a List to the server
body: <p>I wish to append a <code>List&lt;Beans&gt;</code> in a HTTP Post request.</p>
  
  <p>While making use of Apache <code>HTTPClient</code>, I am unable to do the same.</p>
  
  <p>This is what I wish to do:</p>
  
  <pre><code>List&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;(1);
  
  nameValuePairs.add(new BasicNameValuePair("dailySalesList",beanList));
  
  post.setEntity(new UrlEncodedFormEntity(nameValuePairs));
  </code></pre>
  
  <p>However, the BasicNameValuePair seems to take only 2 Strings as argument. I wish to utilize it so that I can use a String - for identification and Object - to pass a List. 
  Basically a functionality similar to using a Map.</p>
  
  <p>Any pointers on how it can be done using Apache <code>HTTPClient</code> ?</p>