note 31581 added to function.header
| From: | Joscha at rack1 dot php dot net | Date: | Sat, 26 Apr 2003 21:34:38 +0000 |
| Subject: | note 31581 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-47153@lists.php.net to get a copy of this message | ||
It took me about 3 hours to find a problem with
header("Content-type: application/pdf");
If this header appears somewhere in my function I have no access to the post vars.
My solution for this was to send this headers:
header("Pragma: no-cache");
header("Cache-control: private");
header("Content-type: octet-stream");
header("Content-Disposition: inline; filename=".time().".pdf");
header("Accept-Ranges: bytes");
I don't know why but with these headers I have access to all postvars. Maybe there's
somebody out there who has the same problems....
--
http://www.php.net/manual/en/function.header.php
http://master.php.net/manage/user-notes.php?action=edit+31581
http://master.php.net/manage/user-notes.php?action=delete+31581
http://master.php.net/manage/user-notes.php?action=reject+31581