Modify request headers ??

#1
Is it possible to modify/add request headers before passing it to a external application (PHP) for processing ? If yes how ?

-Regards,
Akash
 

mistwang

LiteSpeed Staff
#2
You can add environment variable with rewrite rule, only URL and Query String can be changed with rewrite rule.
You can fake a request header value with environment variable, but may not able to override an existing header.
 
#3
You can add environment variable with rewrite rule, only URL and Query String can be changed with rewrite rule.
You can fake a request header value with environment variable, but may not able to override an existing header.
To be more specific, is there any way to do this:

Code:
SetEnvIf Content-Type ^(multipart/form-data)(.*) NEW_CONTENT_TYPE=multipart/form-data-alternate$2 OLD_CONTENT_TYPE=$1$2
RequestHeader set Content-Type %{NEW_CONTENT_TYPE}e env=NEW_CONTENT_TYPE
 
Top