Forum Discussion
Pavan_Dhanushka
Altostratus
Sep 23, 2020X-Forward-Proto for HTTP version identifier(1.0/2)
I recently created & applied a HTTP/2 profile to a virtual server and its working successfully. Stakeholder wants to distinguish the connections b/w HTTP1 and HTTP2. And I'm planning to create a iRu...
crodriguez
Sep 24, 2020Ret. Employee
You might be able to use the HTTP2::active command in the iRule to determine if the client connected using HTTP/2 or not. For example:
when HTTP_REQUEST {
if { [HTTP2::active] } {
log local0. "Request from HTTP/2 client"
} else {
log local0. "Request from HTTP client"
}
}You can find more information on HTTP2::active here. You can also check out the other HTTP2 commands here.
Pavan_Dhanushka
Altostratus
Sep 27, 2020@crodriguez Thanks for info. Let me try in my test VIP.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
