Forum Discussion
Ben_9010
Nimbostratus
Sep 17, 2014iRule POST Magic?
Is it possible to apply an iRule that would watch for POSTs to URIs NOT equal to a certain value and contains specific parameters (username and password) and then on the fly, change the POST to point...
Kevin_Stewart
Employee
Sep 17, 2014This is an abstract, but it should give you an idea of what's involved:
when HTTP_REQUEST {
if { ( [HTTP::method] equals "POST" ) and not ( [HTTP::uri] equals "/foo" ) } {
HTTP::collect [HTTP::header Content-Length]
}
}
when HTTP_REQUEST_DATA {
if { [HTTP::payload] contains "username=" } {
HTTP::uri "/foo"
implement any other changes to POST request here
}
}
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