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