Forum Discussion
Jon_Strabala_46
Nimbostratus
Feb 03, 2010How to use HTTP::respond to send a 1x1 gif
Hello,
I am trying to write a simple iRule to that uses HTTP::respond (from HTTP_REQUEST) to send a 1x1 gif back to the client on any request.
I build a 1x1 gif (44 bytes) bu...
hoolio
Cirrostratus
Feb 03, 2010The content-type would be inserted in the response headers and not count as part of the content-length. LTM generates the content-length header irrespective of it being set in the iRule.
I'd guess the \xDD characters are being converted internally to something you're not expecting. The simplest option I've seen is to base64 encode the image and then use b64decode and HTTP::respond to decode and send it to the client:
http://devcentral.f5.com/wiki/default.aspx/iRules/LTMMaintenancePage.html
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects