NETWORKS-303 practice question 22 of 35

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

Full set: 522 questions
An LTM Specialist needs to rewrite text within an HTML response from a web server. A client is sending the following HTTP request: GET / HTTP/1.1 Host: www.example.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 HTTP/1.1 200 OK Server: Apache/2.2.15 (Unix) Last-ModifieD. Wed, 12 Aug 2009 00:00:30 GMT Accept-Ranges: bytes Content-LengtH. 1063 X-Cnection: close Content-TypE. text/html; charset=UTF-8 Vary: Accept-Encoding Content-EncodinG. gzip Connection: Keep-Alive 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 header field is contributing to the issue?
Answer options
A: HTTP Method
B: Cookie content
C: User-Agent Value
D: Accept-Encoding header Correct answer
Correct Answer:
D. Accept-Encoding header
Explanation

The stream profile is designed to modify uncompressed data. The client's request includes the Accept-Encoding: gzip, deflate header, signaling to the web server that it can accept compressed content. The server honors this request and sends back a response with the Content-Encoding: gzip header and a compressed payload. The stream profile on the LTM cannot find the target text within the compressed (gzipped) data, so no modification occurs.

Why Incorrect

A. The HTTP method GET is standard for retrieving content and does not influence the server's decision to compress the response body.
B. The Cookie header is used for session management and does not affect content encoding or the stream profile's ability to function.
C. The User-Agent header identifies the client browser but does not directly cause the content modification to fail.

References

1. F5 Networks. (2021). BIG-IP Local Traffic Management: Profiles Reference. Stream Profile section. "The Stream profile is designed to modify uncompressed data only."

2. F5 Knowledge Base. (2022). K8115: Overview of the Stream profile. "The Stream profile is designed to modify uncompressed data only. If you apply the Stream profile to a virtual server that processes compressed data, the BIG-IP system does not apply the stream expression to the compressed data."

3. F5 Knowledge Base. (2022). K15234: The BIG-IP system may not decompress data before processing a stream expression. This article details the interaction between compression and the stream profile.

Scroll to Top