Jump to content
Welcome to our new Citrix community!

Rename Header to lowestcase


Recommended Posts

Dear all,

 

I have a problem as below:

 

- The app is running normally on NGINX load balancing, now it is not possible to switch to citrix.

- When we compare the information received from the POST command POST /mobile/v3/security/v2/loginApp, the Authentication field names are different. NGINX is lowercase and citrix is uppercase. Team app confirms that it is case-sensitive.

 

image.thumb.png.f8d9f50ce31efc86a9c2f8d2b2e3378a.png

 

Did Citrix change this name header? or is there any way to workaround it?

 

I tried rewrite but it change the value of Header , it don’t change the name of Header.

 

image.thumb.png.0496eac9cbb567fb524cefa19a5dd6a3.png

image.thumb.png.da679f0626eb1096c1b99d37100accc5.png

Thanks.

Link to comment
Share on other sites

Your doing replace_all on the BODY; which you need to try to do a REPLACE_ALL on the header using the FULL_HEADER and a search string.

Then you can replace the header name with the lowercase value and keep the original authentication value as is.

Example1a with a string match for "Authentication:"   

add rewrite action rw_act_replaceheader_all2 replace_all http.RES.FULL_HEADER "\"authentication:\"" -search "text(\"Authentication:\")"

 

Can switch from a "text" filter to a "regex" if needed.

 

Basic evaluator example:

image.thumb.png.d52f3f5967cc25e997fe7d60147a502c.png

 

However, header names are supposed to be case-insensitive; so an app enforcing case-sensitivity on header name comparisons is not typical.

 

Link to comment
Share on other sites

On 10/5/2022 at 8:38 PM, Rhonda Rowland1709152125 said:

Your doing replace_all on the BODY; which you need to try to do a REPLACE_ALL on the header using the FULL_HEADER and a search string.

Then you can replace the header name with the lowercase value and keep the original authentication value as is.

Example1a with a string match for "Authentication:"   

add rewrite action rw_act_replaceheader_all2 replace_all http.RES.FULL_HEADER "\"authentication:\"" -search "text(\"Authentication:\")"

 

Can switch from a "text" filter to a "regex" if needed.

 

Basic evaluator example:

image.thumb.png.d52f3f5967cc25e997fe7d60147a502c.png

 

However, header names are supposed to be case-insensitive; so an app enforcing case-sensitivity on header name comparisons is not typical.

 

Dear Rhonda,

 

It's working.

 

Thank you so much!

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