I need to get and process some files published monthly on a website, this is how the HTML anchor is set on the website:
<a id="gv_data_btn_file_6" href="javascript:__doPostBack('gv_data$ctl08$btn_file','')">ListOfAutoCodes2018.zip</a>
After I click that this is the repose:
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/octet-stream
Expires: -1
Server: Microsoft-IIS/8.5
content-disposition: attachment;filename=ListOfAutoCodes2018.zip
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Mon, 10 Sep 2018 18:37:26 GMT
Content-Length: 495042
Can you share a code or suggest how can I "simulate" the click and/or execution of the javascript funcion and then get response, which in this case is a CSV file into a stream?