Forum Discussion
2funky_105078 Cirrus
Cirrus
Feb 26, 2018ASM: insert header when a virus is found
 Hello, 
 I tried to configure a iRule to add a HTTP header in the POST request which uploads a file to an origin server. 
 This HTTP header should contain the ASM support ID only when there is a viru...
Simon_Blakely Employee
Employee
Feb 26, 2018HTTP::header commands are not valid in HTTP_REQUEST_RELEASE
Change the event to HTTP_REQUEST_SEND and the context to clientside
when HTTP_REQUEST_SEND {
    if {[info exists supp_id]} {
        clientside {
          HTTP::header insert X-ASM-SUPPORT-ID "VIRUS DETECTED and support ID $supp_id"
        }
    }
}
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