In a rewrite policy, which option correctly rewrites the HTTP response body from 'http://' to 'https://'?

Master Citrix ADC13 with Citrix Gateway 1Y0-231 Test. Use flashcards and multiple choice questions with hints. Prepare thoroughly for your exam!

Multiple Choice

In a rewrite policy, which option correctly rewrites the HTTP response body from 'http://' to 'https://'?

Explanation:
This tests performing a global find-and-replace inside the HTTP response body using a rewrite action. The action uses the response body (up to 200000 bytes) as the target, replacing the string with the replacement you specify. Here you want to take every occurrence of http:// and convert it to https://, so the replacement is https:// and the pattern is http://. This ensures all HTTP links or references in the body are upgraded to HTTPS in one pass. The rest of the syntax just wires this action into the rewrite policy and applies it to the traffic. The other options either invert the replacement (changing HTTPS to HTTP), target the wrong data (such as the request body), or use an incomplete or incorrect replacement string, which would not achieve the desired upgrade to HTTPS.

This tests performing a global find-and-replace inside the HTTP response body using a rewrite action. The action uses the response body (up to 200000 bytes) as the target, replacing the string with the replacement you specify. Here you want to take every occurrence of http:// and convert it to https://, so the replacement is https:// and the pattern is http://. This ensures all HTTP links or references in the body are upgraded to HTTPS in one pass. The rest of the syntax just wires this action into the rewrite policy and applies it to the traffic.

The other options either invert the replacement (changing HTTPS to HTTP), target the wrong data (such as the request body), or use an incomplete or incorrect replacement string, which would not achieve the desired upgrade to HTTPS.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy