Layer7 Access Management

Expand all | Collapse all

Want to use custom name to get Default HTTP header's value

  • 1.  Want to use custom name to get Default HTTP header's value

     
    Posted 11-08-2018 11:53 PM

    Customer want to get the default HTTP header's value by create Response at Adminui.

    Like get the [HTTP_SM_SERVERSESSIONID] 's value and use name [HTTP_SM_SID] at Response setting.

    So please tell me can do that ?

     

    Thanks !

    Sou



  • 2.  Re: Want to use custom name to get Default HTTP header's value

    Posted 11-08-2018 11:54 PM

    Yes, you can



  • 3.  Re: Want to use custom name to get Default HTTP header's value



  • 4.  Re: Want to use custom name to get Default HTTP header's value

     
    Posted 11-09-2018 12:22 AM

    Hi ujwols

    Thank you for your answer.

    So for example, if I want get the [HTTP_SM_SERVERSESSIONID]'s value by the name [SM_SID]

    1.Click [Response]

    2.Select Attribute type [Web Agent-HTTP-Header-Variable]

    3.Select Attribute kind [User Attribute]

    4.Type Variable name [SM_SID]

    5.Type Attribute name [HTTP_SM_SERVERSESSIONID]

    Right?



  • 5.  Re: Want to use custom name to get Default HTTP header's value

    Posted 11-09-2018 12:51 AM

    Attribute Name [SM_SID]

    Variable Name [SM_SERVERSESSIONID]


    Also, attach this response to OnAccessAccept rule 




  • 6.  Re: Want to use custom name to get Default HTTP header's value

     
    Posted 11-09-2018 01:19 AM

    Thanks! ujwols

    Umm..I also want ask you that only create about the session header at response,and need attach to OnAccessAccept rule? Or all.

    Thanks!

    Sou



  • 7.  Re: Want to use custom name to get Default HTTP header's value

    Posted 11-09-2018 01:51 AM

    Just OnAccessAccept should be enough 



  • 8.  Re: Want to use custom name to get Default HTTP header's value

     
    Posted 11-09-2018 01:55 AM

    Thanks ujwols!

    Very appreciate your help.

     

    Sou



  • 9.  Re: Want to use custom name to get Default HTTP header's value

     
    Posted 11-11-2018 10:31 PM

    Hi ujwols.

    I send the URL to the customer that you give me,

    and the message of the following contents was received from the customer.
    [What you tell me seems to overwrite the value of the default HTTP header, but if so it is not what we want to do.]

     

    The customer want to set an arbitrary variable "SM_SID" in the response and assign the value of the default HTTP header "SM_SERVERSESSIONID" to "SM_SID", is this possible?

    Maybe the result like HTTP_SM_SID = SM_SERVERSESSIONID's value

     

    Thanks

    Sou