I have a PHP app that creates a CSV file which is forced to download using headers. Here\'s the relevant part of the code:
header(\'Content-Type: applicatio
You can try and redirect to the URL plus a parameter that represents the file contents. And in the redirect, you can output the file content for download.