Forum Discussion
hoolio
Cirrostratus
Aug 11, 2013Just a test

14 Replies
- hoolio
Cirrostratus
here's some sample code:
when HTTP_REQUEST { code1 asdfasdf code2 HTTP::respond 200 content "Hi!" event all disable return } - hoolio
Cirrostratus
What do you think about this linky?
- hoolio
Cirrostratus
my comment doesn't save newlines tester - Brian_102545Historic F5 Account
this is a test
- hoolio
Cirrostratus
new line test - hoolio
Cirrostratus
1 2 3
- hoolio
Cirrostratus
1 2
- Syafiq_89483
Cirrus
what about triple quote
- hoolio
Cirrostratus
As Kevin said, this certainly is possible: Here's an example from the HTTP::collect wiki page. You can also check the HTTP::payload wiki page for more info on doing the payload replacement: https://devcentral.f5.com/wiki/iRules.http__collect.ashx https://devcentral.f5.com/wiki/iRules.http__payload.ashx
From https://devcentral.f5.com/wiki/iRules.http__collect.ashx Collect a request payload when HTTP_REQUEST { if {[HTTP::method] eq "POST"}{ Trigger collection for up to 1MB of data if {[HTTP::header "Content-Length"] ne "" && [HTTP::header "Content-Length"] <= 1048576}{ set content_length [HTTP::header "Content-Length"] } else { set content_length 1048576 } Check if $content_length is not set to 0 if { $content_length > 0} { HTTP::collect $content_length } } } when HTTP_REQUEST_DATA { do stuff with the payload set payload [HTTP::payload] } - hoolio
Cirrostratus
why no new lines :(
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
