I have a client which is doing an HTTP GET on a plain text file. The plain text file contains line feeds (LF) on every line. I need an iRule solution that translates all line feeds into carriage returns (CR).
I am running version Big-IP 9.4.8.
Can someone help draft an iRule to accomplish this?
I’ve been trying to make that solution work, but have been unsuccessful. There are two types of requests that are made on this site. The first is a PROPFIND, no changes are needed to that request. The second is the GET which pulls down the plain text file. It is the plain text file that I need to have the line feeds converted to carriage returns.
With the iRule implemented that you have linked my PROPFIND command does not get the expected results, and the GET never happens.
With the iRule implemented that you have linked my PROPFIND command does not get the expected results, and the GET never happens.is it because stream command changes PROPFIND response content? if so, can you try to not enable stream on PRODFIND response e.g. save HTTP method to variable in HTTP_REQUEST and check it in HTTP_RESPONSE?
by the way, in HTTP_RESPONSE_DATA event, you may remove the if-condition because the event will be triggered by HTTP::collect which is only called for GET request.