Exam 1Y0-204 All QuestionsBrowse all questions from this exam
Question 102

A Citrix Administrator needs to match the host name 'www.example.com' in all HTTP requests.

Which expression, when used, meets this requirement?

    Correct Answer: A

    To match the host name 'www.example.com' in all HTTP requests, you should use HTTP.REQ.HOSTNAME.EQ('www.example.com'). This expression ensures that the hostname in the HTTP request is exactly equal to 'www.example.com'. The other options either use incorrect syntax or are intended for responses rather than requests.

Discussion
Jogaz0Option: A

The correct expression to match the host name ‘www.example.com’ in all HTTP requests would be HTTP.REQ.HOSTNAME.EQ("www.example.com"). So, the answer is A. HTTP.REQ.HOSTNAME.EQ(“www.example.com”). This is because: HTTP.REQ.HOSTNAME.EQ("www.example.com") checks if the hostname in the HTTP request is equal to ‘www.example.com’. HTTP.REQ.HOSTNAME("example.com") is not a valid expression. HTTP.RES.HOSTNAME.CONTAINS("www.example.com") and HTTP.RES.HOSTNAME.EQ("www.example.com") check the hostname in the HTTP response, not the request. Please note that it’s important to use the correct syntax and consider whether you’re working with a request or a response.