Use of HttpURLConnection to connect to internet and retrieve data of an URL.