Forum Discussion
iRule to change Payload
Hi All, i'm having a problem with an iRule that is not working for me! i would appreciate your help to check it and advice if there is any mistakes in it.
The issue is, that when the Node respond to the request, the payload contains its IP! so the client cant understand it, i need to change that to match the VS IP
iRule
when HTTP_RESPONSE_DATA { if { [HTTP::payload] contains "Node-1"} { set newPayload [string map -nocase {"Node-1" "local.vsip.com"} [HTTP::payload]] HTTP::payload $newPayload } HTTP::release }
2 Replies
- nathe
Cirrocumulus
Tariq, have you thought of using a Stream Profile instead of an irule? See Overview of the Stream Profile
- Tariq_Sako_9038
Nimbostratus
THanks a lot Nathan, i will check it, appreciated
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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