Code example for HttpsURLConnection

Methods: getInputStream

0
			System.out.println("Done");
			 
			//connection.gets 
			 
			System.out.print("Getting i/p Stream from Connection.....");
			InputStream is = connection.getInputStream();
			System.out.println("Done");
			 
			System.out.print("Copy i/p stream to System.out.....");
			IOUtils.copy(is, System.out);
			System.out.println("Done");
			 
		} catch (Exception e) {
			e.printStackTrace();
		} 
		 
	} 
	 
} 
Connect your IDE to all the code out there  Get Codota for Java