Re: using header()

From: Date: Thu, 10 Apr 2003 17:52:48 +0000
Subject: Re: using header()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-143368@lists.php.net to get a copy of this message
> does anybody know how to force apache to give a 401 unauthorized error when > using www-authenticate when using header()? > > been trying to figure out how to send headers with header() and for some > reason it doesnt seem to be working very well.... maybe im writing the > headers all wrong or something.. i have something like: > header("http/1.0 401 unauthorized"); > > but it just gets ignored for some reason I think headers are case sensitive usually, so try it with HTTP instead of 'http'. Also, put an exit(); directly after this so no more code executes. ---John Holmes...

« previous php.general (#143368) next »