downloading a file that comes as an attachment in a POST request response in PhantomJs
I’ve found a way to do this using casperjs (it should work with phantomjs alone if you implement the download function using XMLHttpRequest, but i’ve not tried). I’ll leave you the working example, that tries to download the mos recent PDF from this page. When you click the download link, some javascript code is triggered … Read more