I'm trying to get the contents of a remote file using cURL or file_get_contents, but since the file is served using Content-Disposition, it seems that I only get the source of the webpage instead of the iCal file I actually want. The URL I want to fetch is: http://afvalkalender.eindhoven.nl/Afvalkalender/download_ical.php?p=5621%20AJ&h=32
Hopefully one of you knows how to do this, cause searching on SO or Google only pointed me to ways to serve a file with Content-Disposition, however that is not what I'm looking for.