Yugandhar
Mar 08, 2019Nimbostratus
Variables used across Different Events
Hi,
Can we use the same variable in different events.
Here in the below iRule can we use the variables declared in the HTTP_REQUEST event also in the HTTP_RESPONSE event.
when HTTP_REQUEST
{
SET FLAG 1
SET CLIENT [IP::client_addr]
}
when HTTP_RESPONSE {
if {$FLAG} {
SET SERVER [IP::remote_addr]
log local0 10.10.10.10 "$CLIENT -- $SERVER"
}
}
Thanks,
Yugandhar.