title: How to HTTPS post in Android
body: <p>I have looked at the following links, but nothing seems concrete.
  <a href="https://stackoverflow.com/questions/2253061/secure-http-post-in-android">Secure HTTP Post in Android</a>
  This one does not work anymore, I have tested it and there are comments from other people saying it does not work.</p>
  
  <p>I also checked this out: <a href="https://stackoverflow.com/questions/5629122/defaulthttpclient-certificates-https-and-posting-problem?rq=1">DefaultHttpClient, Certificates, Https and posting problem!</a> This seems it could work but the blogger just leaves you hanging. More step by step instructions would be helpful. I managed to get my certificate by I have not been able to follow through his second step.</p>
  
  <p><a href="http://www.makeurownrules.com/secure-rest-web-service-mobile-application-android.html" rel="nofollow noreferrer">http://www.makeurownrules.com/secure-rest-web-service-mobile-application-android.html</a> This one seem good, but again, I loose the author at the last step: "Back to our original rest client code." He too is all over the place, I have no clue which libraries he is using. He is not explaining his code and with the </p>
  
  <pre><code>RestTemplate restTemplate = new RestTemplate();
  </code></pre>
  
  <p>it's another cliffhanger. Because that class has not been provided. So, if someone could explain how to do HTTPS post request in detail that would be great. I do need to accept the self signed certificate.</p>