In Android, you can download a file using the org.apache.http
classes HttpClient
, HttpGet
and HttpResponse
. How can I read the suggested filename from the HTTP request?
E.g. In PHP, you would do this:
header('Content-Disposition: attachment; filename=blah.txt');
How do I get the "blah.txt" using the Apache classes in Android/Java?