smutt / icann-dl

A script to find and download PDF publications from www.icann.org
GNU General Public License v3.0
3 stars 2 forks source link

Bug in fetching status-current ARR reports #7

Open smutt opened 1 year ago

smutt commented 1 year ago

We don't want to grab stuff like this. https://www.icann.org/board-advice-status-current.pdf

We want the actual/redirected filename, not the displayed name.

This goes for .xlsx and .pdf files the same. We need to look at Content-Disposition header to find actual filename.

https://stackoverflow.com/questions/6881034/curl-to-grab-remote-filename-after-following-location