How to request a secured connection (https)?
<p>Generally, we use http connection like this:</p>

<pre><code>try{

            HttpClient httpclient = new DefaultHttpClient();
//              final HttpParams params = httpclient.getParams();
//              HttpConnectionParams.setConnectionTimeout(params, REGISTRATION_TIMEOUT);
//              HttpConnectionParams.setSoTimeout(params, WAIT_TIMEOUT);
//              ConnManagerParams.setTimeout(params, WAIT_TIMEOUT);

                HttpPost httppost = new HttpPost(url);
                HttpResponse response = httpclient.execute(httppost);
                HttpEntity entity = response.getEntity();
                is = entity.getContent();

        }catch(Exception e){
              // Log.e("log_tag", "Error in http connection "+e.toString());
        }
</code></pre>

<p>This code snippet is used for http.</p>

<p>How can I request a secured connection (https) ?</p>
