Forum Discussion
Ed_Vitale_28327
Nimbostratus
Nov 18, 2005uri scheme
What is the best way to extract the uri scheme (http(s))?
im using ssl on nonstandard ports and need to pass the protocol back to the app in with a header insert.
https://app-a.foo.com:8080 or http://app-b.foo.com
header insert required is
HTTP::header insert BIG-IP-PROTOCOL [???]
Thanks
Ed
ps: im a newbie.
7 Replies
- JRahm
Admin
I think you're looking [TCP::local_port] - Ed_Vitale_28327
Nimbostratus
tcp local port provides the incoming port used, - JRahm
Admin
Sorry, misunderstood your question. Check out this post: - JRahm
Admin
You could also do a TCP::collect and look for the various SSL handshake signatures immediately following the TCP header: - unRuleY_95363Historic F5 AccountAssuming you are terminating the SSL on the BIGIP (which you must be since you are inserting an HTTP header), you can also do something like:
when HTTP_REQUEST { if {[catch {PROFILE::clientssl mode}] == 0} { set scheme HTTPS } else { set scheme HTTP } HTTP::header insert BIGIP-PROTOCOL $scheme }
- Ed_Vitale_28327
Nimbostratus
Thanks much citizen_elah for your help. - Ed_Vitale_28327
Nimbostratus
Thanks unRuleY.
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