note 31581 rejected from function.header by spic

From: Date: Sat, 26 Apr 2003 21:50:21 +0000
Subject: note 31581 rejected from function.header by spic
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-47154@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....

« previous php.notes (#47154) next »