Sep 19, 2014
BIG-IP add custom header
F5 BIG-IP LTM VE v11.4.0 on ESXi
I want to add a custom header to my request before rewriting to a backend server :
when HTTP_REQUEST {
HTTP::header insert uri-original [HTTP::uri]
...
HTTP::uri $rewrite_uri
pool backend-pool-01
}
However my tests do not show this header present.
Am I adding the header correctly ?
What are the rules around retaining added headers ?
How can I log all headers present in my request ?
UPDATE ( 2014-11-29 ) :
For case where iRule is assigned to a virtual-server with an http profile, I verified above TCL does add header as expected.
However, for https case, adding the header writes errors to the f5 logs :
Nov 14 22:03:03 f5-01 err bigd[6134]: 01060111:3: Open SSL error - error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure.
Nov 14 22:03:04 f5-01 err tmm1[8371]: 01220001:3: TCL error: /Common/xheader-irule-01 - Operation not supported (line 1) invoked from within "HTTP::header insert original-uri [HTTP::uri]"