title: Send and receive json message over https
body: <p>I have an android app that invoke some php script on a server, and receive json message as response by using a "normal" HTTP connection like:</p>
  
  <pre><code>static JSONObject jObj = null;
  static String json = "";
  
  DefaultHttpClient httpClient = new DefaultHttpClient();
  HttpPost httpPost = new HttpPost(url);
  httpPost.setEntity(new UrlEncodedFormEntity(params));
  
  HttpResponse httpResponse = httpClient.execute(httpPost);
  HttpEntity httpEntity = httpResponse.getEntity();
  is = httpEntity.getContent();
  
  BufferedReader reader = new BufferedReader(new InputStreamReader(
                  is, "iso-8859-1"), 8);
  StringBuilder sb = new StringBuilder();
  String line = null;
  while ((line = reader.readLine()) != null) {
      sb.append(line + "\n");
  
  }
  is.close();
  json = sb.toString();
  jObj = new JSONObject(json);
  //code for parse jObj Object
  </code></pre>
  
  <p>Now i need to transfer entire server on a new server that use ssl for crypt data. Before start server migration, i need to know ho to modify my android source for use it over https.
  Just only need to modify script address with https (and HttpPost automatically manage all https phases), or i need to do other substantial modification?</p>