note 76758 deleted from function.header by crell

From: Date: Thu, 19 May 2022 16:19:23 +0000
Subject: note 76758 deleted from function.header by crell
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-218502@lists.php.net to get a copy of this message
Note Submitter: Kal ---- I spent a long time trying to determine why Internet Explorer 7 wasn't prompting the user to save a download based on the filename specified on a "'Content-Disposition: attachment; filename=..." header line. I eventually determined that my Apache installation was adding an additional header: "Vary: Host", which was throwing IE - as per http://support.microsoft.com/kb/824847 I found manually setting the Vary header from within PHP as follows header('Vary: User-Agent'); allowed IE to behave as intended. Hope this saves someone else some time, - Kal

« previous php.notes (#218502) next »