vendredi 20 février 2015

Simulate a web page without displaying it

I have an HTML page with a button that when pressed download a file. I need to create a new website that will include the possibility to download that file and I would like to use the first page to do that.

In other way I would like to make the new website to load the first HTML page without displaying it and use it only to download the file, emulating the button pressed.


The only way that comes to my mind is parsing the HTML page and discover where the file is located and then download it. Are there other way to do the same in PHP? And in Javascript?





Aucun commentaire:

Enregistrer un commentaire