Italiano:
Dal 2008 è noto un bug nel browser stock di Android.
Come scritto qui: https://code.google.com/p/android/issues/detail?id=1353
Android non supporta il protocollo per l'autenticazione HTTP (401). Questo è un problema perchè
un utente non può scaricare una risorsa protetta.
Solo con browsers di terze parti (come Firefox o Opera) è possibile scaricare un file protetto.
Così, ho scritto un'applicazione per scaricare tutti i tipi di file, sia protetti o meno.
L'oggeto usato per eseguire la richiesta HTTP è HttpURLConnection, per maggiori dettagli guarda il codice.
I files sono scaricati in /sdcard/Download.
Quest'applicazione richiede Andorid 2.2 o superiore.
Chiunque è invitato a migliorare questo codice ;)
English:
Since 2008 it is known a bug in stock browser of Android.
As written here: https://code.google.com/p/android/issues/detail?id=1353
Android doesn't support HTTP Basic Auth (401). This is a problem beacuse an user can't download
a protected resource.
Only with third party browsers (such Firefox or Opera) it's possible to download a protected file.
So, I've written an application to download all files type, both protected or not.
The object I've used to perform the HTTP request is HttpURLConnection, for more details see the code.
The files are downloaded to /sdcard/Download.
This app require Android 2.2 or higher.
Everyone is invited to improve this code ;)