Forum Discussion
Randy_Johnson_1
Nimbostratus
Apr 06, 2010Insert Header at HTTP_REQUEST_SEND phase ?
Having some trouble with this one -
when HTTP_REQUEST_SEND {
set http_send_time [clock clicks -milliseconds]
HTTP::header insert "X-loadbalancer-timestamp-send" $http_send_time
log local0.info "Client sent these HTTP headers [HTTP::header names]"
}
This errors with "
Apr 6 15:03:47 tmm tmm[2077]: 01220001:3: TCL error: sendheader
Is this telling me that I can't execute a header insert at the HTTP_REQUEST_SEND phase ?
Thanks, everyone !!!
- Randy_Johnson_1
Nimbostratus
- hoolio
Cirrostratus
Try wrapping the HTTP::header commands in the clientside command to force evaluation of the commands into the clientside context. This is necessary as HTTP_REQUEST_SEND is a serverside context event:when HTTP_REQUEST_SEND { set http_send_time [clock clicks -milliseconds] clientside { HTTP::header insert "X-loadbalancer-timestamp-send" $http_send_time log local0.info "Client sent these HTTP headers [HTTP::header names]" } }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects