title: Open URL In java
body: <p>How to open URL in java?</p>
  
  <pre><code>E.g i have https://www.iformbuilder.com/exzact/dataExcelFeed.php?
  PAGE_ID=3175952&amp;TABLE_NAME=_data399173_eff_sor&amp;ANALYTIC=1&amp;SINCE_DATE=2013-10-1
  </code></pre>
  
  <p>when we go to this URL it will download the file.But how to implement this thing in code?</p>
  
  <p>I try this to open url so that file will be downloaded.But its not working.</p>
  
  <pre><code>URL url = new URL("https://www.iformbuilder.com/exzact/dataExcelFeed.php?PAGE_ID=3175952&amp;TABLE_NAME=_data399173_eff_sor&amp;ANALYTIC=1&amp;SINCE_DATE=2013-10-16");
      HttpURLConnection urlCon = (HttpURLConnection) url.openConnection();
      System.out.println(urlCon);
      urlCon.connect();
  </code></pre>
  
  <p>I know something is wrong But i dont knw whats dat</p>