HTTP_PROXY_REQUEST
Problem this snippet solves: Triggered when a virtual server has proxy-mode explicit set and one of the following two scenarios are true:
the request has a full uri of the form http://hostname:po...
Published Mar 18, 2015
Version 1.0CodeCentral_194
Cirrus
Joined May 05, 2019
CodeCentral_194
Cirrus
Joined May 05, 2019
yokamoto
Jul 06, 2016Employee
I want to insert header with Explicit HTTP Proxy.
Can I use both "HTTP::header insert " and "HTTP::proxy enable" in the event of "HTTP_PROXY_REQUEST"?
Like this:
if { [HTTP::host] contains "www.example.com" } {
HTTP::header insert "X-Original-Header: XYZ"
HTTP::proxy enable
} ...