Jump to content
Welcome to our new Citrix community!

change http version via rewrite


Recommended Posts

A customer ask me about configure a rewrite policy to change the version of HTTP from
HTTP 2.1 to HTTP 2.0 in every request, what do you consider is the correct and/or best option
option 


option 1. add rewrite action RW_ACT replace http.req.version "\"HTTP/2.0\""add rewrite policy RW_POL
true RW_ACT
option 2 add rewrite action RW_ACT replace http.res.version "\"HTTP/2.0\""add rewrite policy RW_POL
true RW_ACT
option 3. add rewrite action RW_ACT replace http.req.version "\"HTTP/2.1\""add rewrite policy RW_POL
true RW_ACT
4.add rewrite action RW_ACT replace http.res.version "\"HTTP/2.1\""add rewrite policy RW_POL
true RW_ACT

Link to comment
Share on other sites

  • 4 years later...

Good Morning Rene,
the correct answer is 1.

 

The syntax of a rewrite action is as follows:
add rewrite action <Name> <Action Type> <Target Location> <Value>

 

add rewrite action RW_ACT replace http.req.version "\"HTTP/2.0\""
add rewrite policy RW_POL true RW_ACT

 

The Target Location specifies the Object which should be changed.
The Value is new Value for this Object.

 

1. You want to change the request, so you need an expression with "HTTP.REQ." instead of "HTTP.RES." (Answer 2/4 out)
2. And you also want to change the HTTP Version from 2.1 to 2.0. (Answer 3 out)

 

Best regards,
Jens

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...