Is it possible to get the name of a file downloaded with HttpURLConnection?
URL url = new URL(\"http://somesite/getFile?id=12345\"); HttpURLConnection conn =
Check for the Content-Disposition: attachment header in the response.
Content-Disposition