Forum Discussion
lstewart_53611
Nimbostratus
Apr 15, 2010Redirect POST data while load balancing GET iRule
I am attempting to write an iRule which will allow data from a page to be redirected to an external URL, but will then deliver the followup page (simple GET data) from a vip. From everything I've bee...
Nat_Thirasuttakorn
Employee
Apr 15, 2010to explain more about iRule I posted
1) if method = post, it issues HTTP::collect, which will invoke HTTP_REQUEST_DATA
2) then it scan POST-data and prepare new content to respond to client. the new content will include
- form with all INPUT field names retrieved from POST-data
- the "action" parameter in the form points to external server
- all input fields are set as hidden (so client wont see the data during the process
- javascript that submit the form automatically
3) then irule reply to client with HTTP::respond command with content prepared in step2
so the idea is when client send post to BIG-IP, BIG-IP replies with html page which contains a form. the form contains post-data that client just sent. the form will be auto-submit by javascript
Nat
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