converting over to HttpURLConnection
Merge pull request #50 from riotopsys/HttpURLConnection

converting over to HttpURLConnection