B4J Question loading a web page that triggers a download

giggetto71

Active Member
Licensed User
Longtime User
Hi,
I have an address:
http://www.fantacalcio.it/Servizi/Excel.ashx?type=1&g=15&t=1609996990000&s=2020-21

which when pasted in the address bar of a web browser, it triggers the ope/save/cancel popup question. for example this is what you get with internet explorer. With Chrome it goes directly in the download tabs at the bottom of the page (it does not even ask, it saves directly to the download folder)
1610085840518.png


I would like to use that address in a B4j or even a B4A application but if I use a webview and load the url nothing happens. is there a way to get that working with the WebView or any other view?
thanks!!
 

DonManfred

Expert
Licensed User
Longtime User
Solution 1:
Use okhttputils2 to download the File directly from this link.

Solution 2: (Note that i only know this is working in B4A. Have not much experience with b4j webview though.)
Use the webview overrideurl event and download the File with okhttputils2.
 
Upvote 0
Top