How to download a csv file using PhantomJS
问题 When I'm browsing a website A using normal browser (Chrome) and when I click on a link on the website A, Chrome imediatelly downloads report in a form of CSV file. When I checked a server response headers I get the following results: Cache-Control:private,max-age=31536000 Connection:Keep-Alive Content-Disposition:attachment; filename="report.csv" Content-Encoding:gzip Content-Language:de-DE Content-Type:text/csv; charset=UTF-8 Date:Wed, 22 Jul 2015 12:44:30 GMT Expires:Thu, 21 Jul 2016 12:44