ltm rule event HTTP REQUEST SEND
iRule(1) BIG-IP TMSH Manual iRule(1)
HTTP_REQUEST_SEND
Triggered immediately before an HTTP request is sent to the server-side
TCP stack.
DESCRIPTION
An iRule event triggered immediately before an HTTP request is sent to
the server-side TCP stack. This is a server-side event. Because of
that, if you wish to execute commands in a client-side context in this
event, you will need to use the clientside command to do so.
Examples
##
when HTTP_REQUEST_SEND {
TCP::collect 12
}
## Replace HTTP host header value with the connected server IP and port
when HTTP_REQUEST_SEND {
# Need to force the host header replacement and HTTP:: commands into the clientside context
# as the HTTP_REQUEST_SEND event is in the serverside context
clientside {
# Replace the HTTP host header with the connected server IP and port
HTTP::header replace Host "[IP::server_addr]:[TCP::server_port]"
}
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-9.0.2 --First introduced the event.
BIG-IP 2017-01-31 iRule(1)