When accessing the website above, we can select from a table, the variables we want, the year, and month (or all months), and press download.
Before, when I right-clicked on the POST line and choose "Copy as cURL", I would get a really nice set of code which I could translate into this:
The basic idea is to use R to download a zip file generated here https://www.transtats.bts.gov/DL_SelectFields.aspx?gnoyr_VQ=FIL&QO_fu146_anzr=Nv4%20Pn44vr45.
When accessing the website above, we can select from a table, the variables we want, the year, and month (or all months), and press download. Before, when I right-clicked on the POST line and choose "Copy as cURL", I would get a really nice set of code which I could translate into this:
The code used to extract the cURL was this:
The new saved res, had binary data which I could easily use to download the zip file generated by the POST.
However, when I do the same now it's a mess and I can't get anything from it.
In fact, when trying to run that res, it won't get any zip file anymore, and I suspect that it's due to this
__EVENTVALIDATION
and/or the__VIEWSTATE
.