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.
upvoted 2 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Jogaz0
1 year, 1 month ago