Context: I'm trying to automatically scrape a pdf file from a website, but the file is linked to a button (pressing it starts the download). Inspecting this button with chrome developed mode informed me that the button initiates a POST request which in turn starts the file download (I assume at least). I'm trying to recreate this post request using python's requests module, but to no succes so far.
The Question: I've been googling for a couple of hours and I can't wrap my head around the header information that goes along with a POST/GET request. I can't seem to figure out why and when someone would add header information and when it is required for a successful POST request. If someone could enlighten me I'd be very grateful.