Forum Discussion
supportrsd_1762
Dec 13, 2014Nimbostratus
Irule insert html attribute, APM
Hello I found this known issue in 11.6 475163 "The result of submitting an HTML form that does not have an action attribute is a 404 error and 'null' in the request URL. Workaround: Add attribut...
kunjan
Dec 15, 2014Nimbostratus
Try this
when HTTP_REQUEST {
set flag 0
if { [HTTP::method] eq "GET" && "[HTTP::path]" contains "/url_with_POST/"
} {
set flag 1
if { [HTTP::version] eq "1.1" } {
if { [HTTP::header is_keepalive] } {
HTTP::header replace "Connection" "Keep-Alive"
}
HTTP::version "1.0"
}
}
}
when HTTP_RESPONSE {
if { $flag == 1 } {
if { [HTTP::header exists "Content-Length"] and [HTTP::header "Content-Length"] <= 1048576 } {
HTTP::collect [HTTP::header Content-Length]
} else {
HTTP::collect 1048576
}
}
}
when HTTP_RESPONSE_DATA {
if { $flag == 1 } {
set loc [string first {method="POST"} [HTTP::payload]];
if { $loc > 0 } {
HTTP::payload replace [expr $loc + 13] 0 { action="" }
}
}
HTTP::release
}
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