To match the host name www.example.com in all HTTP requests, which expression is correct?

Prepare for the Citrix ADC 1Y0-241 exam with interactive quizzes and detailed explanations. Get insights on key topics and boost your confidence to ace the test!

Multiple Choice

To match the host name www.example.com in all HTTP requests, which expression is correct?

Explanation:
Matching the host header of incoming HTTP requests is done by inspecting the request, not the response, and comparing it to the exact hostname. The expression HTTP.REQ.HOSTNAME.EQ("www.example.com") does just that: it checks the hostname in each incoming HTTP request and returns true only when it equals www.example.com, making it the correct way to match that host across all requests. Using the response (HTTP.RES...) would test the hostname in replies, which isn’t present for incoming requests, so it won’t match the requests you’re filtering. The other option uses invalid syntax for the hostname comparison, and the last option also checks the response rather than the request.

Matching the host header of incoming HTTP requests is done by inspecting the request, not the response, and comparing it to the exact hostname. The expression HTTP.REQ.HOSTNAME.EQ("www.example.com") does just that: it checks the hostname in each incoming HTTP request and returns true only when it equals www.example.com, making it the correct way to match that host across all requests.

Using the response (HTTP.RES...) would test the hostname in replies, which isn’t present for incoming requests, so it won’t match the requests you’re filtering. The other option uses invalid syntax for the hostname comparison, and the last option also checks the response rather than the request.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy