I have been struggling with this one for a while.
I am trying to download CSV file generated by Google Adwords "download report" button. I can click the link just fine and see the resource in the background. The problem is that in order to download it, casperJS/phantomJS requires a URL to the file... but the CSV is generated on the spot and has the same URL as the page I am on (following that link just leads you to the homepage, not the CSV file so casperJS can't download it).
Is there a way to save that resource without the URL?
I found this workaround: downloading a file that comes as an attachment in a POST request response in PhantomJs
But unfortunately, Google Adwords report button has no form that I can reference.