Re: how to dynamically set a request header befor send the content handler is run

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

 



Hi,

Is it correct to interpret this as "I want to create a new requestheader, based on the values of a client-provided requestheader"?

From http://httpd.apache.org/docs/2.2/mod/mod_headers.html "Request Headers are set immediately before running the content generator and Response Headers just as the response is sent down the wire."

Based on this you should be able to use an environment variable that is used as part of an _expression_ to define the value of the new header.

Perhaps if you further clarify exactly what you are trying to do, others maybe better able to answer your question.

HTH

Kind regards/met vriendelijke groet,

Serge Fonville

http://www.sergefonville.nl

Convince Microsoft!
They need to add TRUNCATE PARTITION in SQL Server
https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table



2012/12/13 Liudonghua (Eric) <eric.liudonghua@xxxxxxxxxx>

I have already read the mod_headers configure document (http://httpd.apache.org/docs/2.4/mod/mod_headers.html).

And I see early requestheader maybe solve my problem.

RequestHeader add|append|edit|edit*|merge|set|unset header [value] [replacement] [early|env=[!]variable]|expr=_expression_]

For my requirement that I need to change a request header before the following operation.

For example, a HTTP request contains a header headerName:headerValue. And now I should convert it to NewHeaderName:NewHeaderValue which NewHeaderValue is depend on the headerValue.

Because early and expr=_expression_ in the requestheader syntax can not use together.

How can I achieve this goal.

Thanks in advance.



[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