Exam 301b All QuestionsBrowse all questions from this exam
Question 88

An LTM Specialist needs to rewrite text within an HTML response from a web server. A client is sending the HTTP request below:

GET / HTTP/1.1 -

Host: www.f5.com -

User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-LanguagE. en-US,en;q=0.5 -

Accept-EncodinG. gzip, deflate -

Cache-Control: no-cache -

Connection: keep-alive -

CookiE. somecookie=1 -

Although a stream profile has been added to the virtual server, the content within the HTTP response is NOT being matched, and therefore NOT modified.

Which HTTP header should the LTM Specialist remove from the request to ensure the content can be matched and modified?

    Correct Answer: D

    To ensure the content within the HTTP response can be matched and modified by the LTM device, the 'Accept-Encoding' header should be removed from the request. This is because the 'Accept-Encoding' header informs the server that the client can handle compressed responses (e.g., gzip or deflate). If the server responds with compressed content, the LTM device may not decompress it before trying to apply the stream profile, thus preventing the stream profile from matching and modifying the content as intended.

Discussion
GVKDOption: D

D - Correct Stream profiles typically work on the uncompressed body of the HTTP response. The Accept-Encoding header in the client request indicates that the client can accept gzip or deflate compressed responses. If the server sends a compressed response (as suggested by Content-Encoding: gzip), the LTM device might not be decompressing it before applying the stream profile, leading to unmatched patterns.