Re: Conditionally Setting HTTP Response Header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 15, 2010 at 11:15 AM, Anurag Kapur <anuragkapur@xxxxxxxxx> wrote:
> I saw it used
> here http://mail-archives.apache.org/mod_mbox/httpd-dev/200609.mbox/%3C450543D6.80505@xxxxxxxxxxxxxx%3E
> I thought it is needed to differentiate a field set in the response header
> from that in the request header. But after reading the documentation again,
> I see it says:
> An HTTP request header field (see RFC2616 for more information about these);
> for example: Host, User-Agent, Referer, and Accept-Language. A regular
> expression may be used to specify a set of request headers.
> http://httpd.apache.org/docs/2.0/mod/mod_setenvif.html#setenvif
> Which means I can use only request header fields (Am I right?). However,
> what I am looking to do is conditionally set an environment variable based
> on the "response" header (not request header), so that I know if I have to
> append or unset a certain field in the response header.
> Unless I am getting this wrong, is there any other way of doing this?

Not sure, but the code you reference is not in Apache HTTP Server  2.2.x

-- 
Eric Covener
covener@xxxxxxxxx

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux