httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hari Menon" <hari_p_me...@hotmail.com>
Subject mod_header question
Date Sat, 16 Feb 2002 01:36:24 GMT
I have written an authorization module. If you access a resource and you are 
not authorized, then it redirects you to an authentication page. And in this 
case, my handler returns an error code so that the resource is not returned 
in the resonse.

Now, I also need to set a particular header (in my case, the "P3P" header) 
for all HTTP responses including the response that specifies the redirect to 
the authentication page (this is because I have to set a cookie within this 
redirect response itself - so that after the authenticaton I can redirect 
the user to the resource that was originally being accessed).

I wanted to use the HTTP header using the "Header" directive of mod_header.

Now since I return the error from the auth phase, mod_header is not invoked 
and the HTTP header does not get added to the response.

I could modify my module to add the HTTP header while sending the redirect; 
but that would mean that I need to specify the values for the header in the 
httpd.conf (using the Header directive) as well as in my code (or my config 
file).

Is there a way around this - anything I can do in my code or within the 
httpd.conf file ?

Thanks in advance
Hari


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message