Tariq_Sako_9038
Jan 10, 2016Nimbostratus
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 }