Citrix Virtual Apps and Desktops 7 Associate — Question 144
A Citrix Administrator needs to match the host name 'www.example.com' in all HTTP requests.
Which expression, when used, meets this requirement?
Answer options
- A. HTTP.REQ.HOSTNAME.EQ(ג€www.example.comג€)
- B. HTTP.REQ.HOSTNAME(ג€example.comג€)
- C. HTTP.RES.HOSTNAME.CONTAINS(ג€www.example.comג€)
- D. HTTP.RES.HOSTNAME.EQ(ג€www.example.comג€)
Correct answer: A
Explanation
The correct answer, A, uses the HTTP.REQ.HOSTNAME.EQ function, which directly checks if the host name in the request equals 'www.example.com'. Option B only checks for 'example.com', which would not match requests specifically for 'www.example.com'. Options C and D refer to response headers rather than request headers, making them unsuitable for this requirement.