Forum Discussion
David_M
Apr 12, 2022Cirrostratus
I am adding a custom http header but how to print it out using irules?
Here's what I have done using curl - The curl request is seen with "-v" it shows that the devicetyp header is being added to the request, but how do i fetch it from irules? I can see the he...
- Apr 15, 2022
that didnt work but this did
when ACCESS_SESSION_STARTED {
ACCESS::session data set session.custom.devicetype [HTTP::header value devicetyp]
}
Hello David_M.
You should get the header value with this command:
[HTTP::header value "devicetyp"]
Also, you can set the APM session variable with:
ACCESS::session data set session.custom.device.type [HTTP::header value "devicetyp"]
David_M
Apr 15, 2022Cirrostratus
that didnt work but this did
when ACCESS_SESSION_STARTED {
ACCESS::session data set session.custom.devicetype [HTTP::header value devicetyp]
}
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