LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Modify request headers ??

Reply
 
Thread Tools Display Modes
  #1  
Old 09-17-2009, 10:59 AM
28122008 28122008 is offline
Member
 
Join Date: Dec 2008
Posts: 13
Question Modify request headers ??

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

-Regards,
Akash
Reply With Quote
  #2  
Old 09-17-2009, 02:41 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
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.
Reply With Quote
  #3  
Old 09-17-2009, 09:22 PM
28122008 28122008 is offline
Member
 
Join Date: Dec 2008
Posts: 13
Quote:
Originally Posted by mistwang View Post
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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:22 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.