Forum Discussion
JamesS_40157
Aug 21, 2012Nimbostratus
HTTP::collect and HTTP::payload corrupt?
Hi, I am trying to create an iRule that, when a response is sent back to the client (the client initiates a GET request for a file, in this case an image), it will collect the body. The iRul...
hooleylist
Aug 22, 2012Cirrostratus
Hi James,
The binary content gets converted to UTF8 if you try to append it to a string. Can you try this?
HTTP::retry "POST $original_path HTTP/1.1\r\nHost: $original_castordomain\r\nX-Forwarded-Host: $original_castordomain\r\nContent-Length: $contentlength\r\n\r\n[HTTP::payload]
Note that per RFC2616 section 5, the payload shouldn't have a CRLF at the end:
http://tools.ietf.org/html/rfc2616section-5
Once you're done testing, you might also want to limit which responses you collect the payload for (based on requested URI, response content-type, etc). And you should limit the amount of data you collect to 4Mb in pre-v11:
SOL6578 - TMM will crash if an iRule collects too much data
https://support.f5.com/kb/en-us/solutions/public/6000/500/sol6578.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