title: See detail log in HttpURLConnection
body: <p>I write following code:</p>
  
  <pre><code>public static void main(String args[]) throws IOException {
      URL url = new URL("http://stackoverflow.com/");
      HttpURLConnection conn = (HttpURLConnection) url.openConnection();
      System.out.print(conn.getResponseMessage());
  }
  </code></pre>
  
  <ol>
  <li>I want show all debug information in console when i run this method.</li>
  <li>I want see what kind of http request have been sent from log.  </li>
  </ol>