Re: Can i get the full HTTP-Header without patching PHP?

From: Date: Thu, 12 Jul 2001 09:22:30 +0000
Subject: Re: Can i get the full HTTP-Header without patching PHP?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-57560@lists.php.net to get a copy of this message
"Rainer Kohnen" <rainerkohnen@yahoo.com> wrote in message news:20010712071545.19025.qmail@pb1.pair.com... > Hi, > > is there a way to get the full HTTP Header > without patching PHP? > > I use a debugger coded in PHP a lot. Now i need > to debug some intershop enfinity pages. However, > enfinity uses a lot of fields with the same names. > So my debugger overwrites the variables and i get > only the last one. As i cant change the code > (wouldn't work anymore then) i cant debug without > having access to the full http header. > (i can make arrays for duplicate variables for > myself then) > > Same problem with some kind of e-cash system. > It validates itself by putting a signature into > the header. However, PHP cant validate the header > as i have no chance to get the original header. > (And i cant rebuild the original header of course) > > If there is no way without patching to > get these informations are there any plans to > integrate a function for getting the header > in future versions of php? > > thanks > Have you tried: http://www.php.net/manual/en/function.getallheaders.php $headers = getallheaders(); while (list ($header, $value) = each ($headers)) { echo "$header: $value<br>\n"; } Peter

« previous php.general (#57560) next »