title: Android HttpsURLConnection throw generic Exception without details
body: <p>Hy guys, </p>
  
  <p>I'm struggling with a difficult problem.
  I need to call a web service with REST GET method over HTTPS.
  The code is as follows:</p>
  
  <pre><code>URL urlSSL = new URL ("https: // xxxxxxxx");
  HttpsURLConnection URLConnection = (HttpsURLConnection) urlSSL.openConnection ();
  urlConnection.setRequestMethod ("GET");
  </code></pre>
  
  <p>Immediately after this statement the value of getResponseCode is -1.
  If I try to read the stream of input</p>
  
  <pre><code>InputStream is = urlConnection.getInputStream ();
  </code></pre>
  
  <p>an exception is raised and it is generic Exceptio details.
  I have no more ideas for the solution.
  Could you please help me?</p>
  
  <p>Thank You.</p>