switch to HttpURLConnection for the library, because Android