title: several requests from one HttpURLConnection
body: <p>How can I do several request in one HttpURLConnection with Java?</p>
  
  <pre><code> URL url = new URL("http://my.com");
   HttpURLConnection connection = (HttpURLConnection)url.openConnection();
   HttpURLConnection.setFollowRedirects( true );
   connection.setDoOutput( true );
   connection.setRequestMethod("GET"); 
  
   PrintStream ps = new PrintStream( connection.getOutputStream() );
   ps.print(params);
   ps.close();
   connection.connect();
   //TODO: do next request with other url, but in same connection
  </code></pre>
  
  <p>Thanks.</p>