In an SSL offload deployment, which policy will allow a Citrix Administrator to modify all URLs in the response body from "http://" to "https://"?
In an SSL offload deployment, which policy will allow a Citrix Administrator to modify all URLs in the response body from "http://" to "https://"?
To modify all URLs in the response body from 'http://' to 'https://', the correct policy should use the 'replace_all' action to identify and replace the string 'http://' with 'https://'. The correct format for this is 'add rewrite action Act1 replace_all "HTTP.RES.BODY(200000)" "http://" -pattern "https://"'. This ensures that the rewrite action correctly identifies 'http://' in the response body and replaces it with 'https://'. Therefore, the given option with this correct format is the one to choose.
sorry above answer.ANSWER is C. -pattern takes a string of what you want to change. B is wrong. https://support.citrix.com/article/CTX123094
https://docs.citrix.com/en-us/citrix-adc/current-release/appexpert/rewrite.html REPLACE_ALL <target> <string_builder_expr1> -(search) <string_builder_expr2>. In the request or response specified by <target>, replaces all occurrences of the string defined by <string_builder_expr1> with the string defined by <string_builder_expr2>. You can use the search facility to find the strings to be replaced.
C pattern is what your are looking for in the RES HTTP BODY. add rewrite action Act1 replace_all "HTTP.RES.BODY(200000)" "\"https://\"" -pattern "http://"