title: Http get request in Android
body: <p>I need help with sending http get request. Like this:</p>
  
  <pre><code>URL connectURL;
  connectURL = new URL(address);
  HttpURLConnection conn = (HttpURLConnection)connectURL.openConnection(); 
  // do some setup
  conn.setDoInput(true); 
  conn.setDoOutput(true); 
  conn.setUseCaches(false); 
  conn.setRequestMethod("GET"); 
  // connect and flush the request out
  conn.connect();
  conn.getOutputStream().flush();
  // now fetch the results
  String response = getResponse(conn);
  et.setText(response);
  </code></pre>
  
  <p>I searched the web but any method I try, the code fails at <code>'conn.connect();'</code>. Any clues?</p>