HTTP_REQUEST_SEND¶
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]"
}
}