I would like to send a JSON string from the server side to the client with URL’s.
The client should then through JavaScript/JQuery download the HTML files and send the content back to the server side.
This should happen without the user need to interact.
Is that possible with JavaScript/JQuery to get the client to download html and then send it to the server side?
Update
The purpose is to get the client to download the html rather than the server.
Try something like this:
That might do what you need: make the
urlandserverurlvariables the right values.EDIT: note that you’ll get SOME source, but for anything other than the most trivial page implementation you will only get the page HTML source, but no media or css files or dynamically loaded resources.
EDIT: as @Rocket correctly pointed out, Same-Origin restrictions do apply. This will only work if you are accessing a server with the appropriate CORS setup.