Forum Discussion
Yozzer
Nimbostratus
Mar 21, 2017Safari POST data
Hi
I’m seeing an issue with the way Safari POST data is handled using the [HTTP::payload] command which is different to the way its handled for Firefox and IE.
Im trying to limit the number...
Stanislas_Piro2
Cumulonimbus
Mar 21, 2017try this irule:
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 {
set qrystring "[string tolower ?[HTTP::payload]]"
log local0. "payload is [HTTP::payload]"
}
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
