Forum Discussion

L-CISIRH-BT-NET's avatar
L-CISIRH-BT-NET
Icon for Nimbostratus rankNimbostratus
Nov 20, 2018

<http_request> - Operation not supported (line 5) invoked from within "HTTP::header insert X-Forwarded-Proto "https"" </http_request>

Hello Need to insert X-Forwarded-Proto "https" in the header when HTTP_REQUEST Unfortunately I get this error message : - Operation not supported (line 5) invoked from within "HTTP::header insert X-Forwarded-Proto "https""

 

Anyone has an hint to fix this ?

 

  • I tested the following basic iRule and was unable to recreate your issue. (It inserts the header, as expected, and no error message is generated.):

     

    when HTTP_REQUEST {
        HTTP::header insert "X-Forwarded-Proto" "http"
    }

    Would you add your iRule code to this question so as we can see the context in which you are trying to add the header, please?

     

  • You probably have other iRules on which you are doing redirect or suchlike.