How to send parameters when need to call http post call ?
<p>I need to use some service. 
The service method that i need to call need to get two parameters 
    1. int 
    2. some enum </p>

<p>I don't know how to send those parameters and how to make this call. 
I wanted to use this code </p>

<pre><code>List&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;(2);        
nameValuePairs.add(new BasicNameValuePair("param1", val1);
nameValuePairs.add(new BasicNameValuePair("param2", val2);          
httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
HttpResponse p = httpclient.execute(httppost);
</code></pre>

<p>But this code can't send int as parameter ( only string ) 
The second parameter ( that is some enum ) i think that i can send as string and the service in the other side will translate this string to enum ( am i right ? ) </p>
