How to send just a string with http Post on Android?
<p>i need to send a string to a server, but the only way i know to is by using namevaluepairs, but that sends the key and a value i just want to send one string, how do i do that?</p>

<pre><code>HttpClient httpclient = new DefaultHttpClient();
                        HttpPost httppost = new HttpPost("http://10.0.2.2:1455/Android/Android.svc/GetCompanyBusinessAreas");


                        try 
                        {           
                         List&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;(2);
                         nameValuePairs.add(new BasicNameValuePair("", companhiaIdS));




                         httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
                         Log.i("Enviando:", nameValuePairs.toString());


                        // Execute HTTP Post Request
                            HttpResponse response = httpclient.execute(httppost);
                            Log.i("Resposta:", response.getEntity().toString());
                            HttpEntity responseEntity = response.getEntity();
</code></pre>

<p>what can i use instead of namevaluepairs, because it send a list and the server is excpecting just one string?</p>
