File download from htmlviewer

I have a web app created using php that i am creating a browser for so the web app can only be accessible using the browser made with xojo. One feature of the app is that you can download files unto your computer. How can i use the htmlviewer to be able to allow downloads.

there is an old answer to a similar question,
by Greg O’Lone
You could try intercepting the click using the CancelUrl event and then use an httpsocket to download the file yourself.

post

didn’t try it, but seems the only reasonable way

 Giulio