title: Android set content type HttpPost
body: <p>How can you change the content-type of a HttpPost in android?</p>
  
  <p>For a request I need to set the content type to application/x-www-form-urlencoded</p>
  
  <p>So i got this bit of code:</p>
  
  <pre><code>httpclient=new DefaultHttpClient();
  httppost= new HttpPost(url);
  StringEntity se = new StringEntity(""); 
  se.setContentEncoding(new BasicHeader(HTTP.CONTENT_TYPE, "application/x-www-form-urlencoded"));
  httppost.setEntity(se);
  </code></pre>
  
  <p>But that doesn't do the trick and I cant find the solution anywhere.</p>
  
  <p>Cheers</p>