Which expression matches requests where the host header equals www.example.com?

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

Multiple Choice

Which expression matches requests where the host header equals www.example.com?

Explanation:
To match the host header from the incoming HTTP request, you inspect the request attributes, not the response. Use the request hostname and compare it for exact equality. So the expression HTTP.REQ.HOSTNAME.EQ("www.example.com") is correct because it checks that the host in the client’s request is exactly www.example.com. The other options don’t fit: one misses the operator after the hostname, making it invalid syntax. The other two reference the server’s response (HTTP.RES) instead of the client request, so they wouldn’t match the desired condition of the incoming host header, regardless of the operator used.

To match the host header from the incoming HTTP request, you inspect the request attributes, not the response. Use the request hostname and compare it for exact equality. So the expression HTTP.REQ.HOSTNAME.EQ("www.example.com") is correct because it checks that the host in the client’s request is exactly www.example.com.

The other options don’t fit: one misses the operator after the hostname, making it invalid syntax. The other two reference the server’s response (HTTP.RES) instead of the client request, so they wouldn’t match the desired condition of the incoming host header, regardless of the operator used.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy