Jump to content
Welcome to our new Citrix community!

How can I insert a custom header only after checking if an existing header is not part of the request from client ?


Shailesh Rathod

Recommended Posts

When creating the rewrite policy, your policy expression (which would then trigger the action to do the rewrite if needed) would be something like: do rewrite if header does not exist...

!http.req.header("<headername>").exists

 

Then your rewrite action, will the INSERT_HEADER

<NEWHEadername>

Value:  <header value>

 

Bind the policy to the appropriate vserver, and it will apply only if header is NOT present on the.

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...