Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- URL url = new URL(mLink);
- HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
- urlConnection.setRequestMethod("GET");
- urlConnection.setDoInput(true);
- urlConnection.setRequestProperty("User-agent","Mozilla/2.0.0.11");
- urlConnection.connect();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement