0

Android - Avoid redirection in download link

view story
linux-howto

http://stackoverflow.com – I am trying to download an epub from a link, the link I got it by right clicking and copying the link address in a common browser such as Google Chrome, paste the link to start the download, however in my code, the connect to this link redirects to a html, and at the end instead of downloading the epub, download the html, anyone know how I can avoid that redirects the download link? This is part of my code: URL url = new URL("http://st10.file.karelia.ru/25nv8s/9789d242bd127ce31991dd68fa434caa/7958c0b30a9fa22938770ac65e9f2544/principito.epub"); URLConnection conexion = url.openConnection(); c (HowTos)