Which of the following is a correct rewrite action to replace http:// with https:// in the response body?

Prepare for the Citrix ADC 1Y0-241 exam. Study with multiple choice questions, hints, and detailed explanations to enhance your traffic management skills. Boost your readiness for the certification!

Multiple Choice

Which of the following is a correct rewrite action to replace http:// with https:// in the response body?

Explanation:
The concept being tested is how to modify the response body by replacing text, specifically turning http:// links into https:// links using a rewrite action. In Citrix ADC, you use a rewrite action with replace_all on the response body (HTTP.RES.BODY(200000)) so every occurrence of a pattern can be changed in one pass. Here, the goal is to locate the insecure scheme http:// and replace it with the secure scheme https://, ensuring all URLs in the body switch to HTTPS. The chosen form searches for http:// and supplies the replacement as the escaped form of https://. By targeting the body and applying a global replace, every http:// in the response body becomes https://, which is exactly what you want for broader HTTPS enforcement in responses. The other options either attempt to replace the wrong substring, or use an incorrect replacement (such as missing the slashes or misescaping), which would not yield valid https:// in the body.

The concept being tested is how to modify the response body by replacing text, specifically turning http:// links into https:// links using a rewrite action. In Citrix ADC, you use a rewrite action with replace_all on the response body (HTTP.RES.BODY(200000)) so every occurrence of a pattern can be changed in one pass. Here, the goal is to locate the insecure scheme http:// and replace it with the secure scheme https://, ensuring all URLs in the body switch to HTTPS.

The chosen form searches for http:// and supplies the replacement as the escaped form of https://. By targeting the body and applying a global replace, every http:// in the response body becomes https://, which is exactly what you want for broader HTTPS enforcement in responses. The other options either attempt to replace the wrong substring, or use an incorrect replacement (such as missing the slashes or misescaping), which would not yield valid https:// in the body.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy