Forum Discussion
HTTP::Collect and HTTP::payload Not working
Im experiencing same issue as well.Do we've any fix for it. when HTTP_REQUEST { if {[HTTP::method] eq "POST" && [string tolower [HTTP::path]] contains "tealeaftarget" }{ Trigger collection for up to 12K of data if {[HTTP::header "Content-Length"] ne "" && [HTTP::header "Content-Length"] <= 12228}{ set content_length [HTTP::header "Content-Length"] } else { set content_length 12228 } 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 count [string length [HTTP::payload]] set response "received a total of $count of a planned $content_length bytes" HTTP::respond 200 content $response }
Error is as below. TCL error: IRULE NAME - Operation not supported (line 1) invoked from within "HTTP::collect $content_length"
Recent Discussions
Related Content
* 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