Re: How to Access HTTP headers in IIS?

From: Date: Wed, 18 May 2005 03:39:20 +0000
Subject: Re: How to Access HTTP headers in IIS?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-26020@lists.php.net to get a copy of this message
See if this gets you what you need: function emu_getallheaders() { foreach($_SERVER as $h=>$v) if(ereg('HTTP_(.+)',$h,$hp)) $headers[$hp[1]]=$v; return $headers; } It was posted not too long ago here: http://us2.php.net/manual/en/function.getallheaders.php Hope that helps. Shinan On 5/17/05, Wu, Jin Yong <jinyong.wu@chn.xerox.com> wrote: > > Dear all, > > I'm encountering a problem how to access HTTP headers in IIS. > I know there is a function getallheaders() for Apache, but what about IIS? > Does anyone have any idea? Thank you so much in advance! > > Yong > 2005/5/17 > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Shinan S. Kassam

« previous php.windows (#26020) next »