Forum Discussion
ssenecal_87343
Nimbostratus
Nov 10, 2009get incoming protocol
This is probably a really dumb question, but I can't figure out how to get the incoming HTTP protocol. ie, if the user accesses "http://server.com" I want "http", or if the access "https://server.com...
hoolio
Cirrostratus
Nov 10, 2009Hi,
That's not a dumb question at all--we had a recent discussion about this topic in this post:
examining the "http://" portion of a url
http://devcentral.f5.com/Default.aspx?tabid=53&forumid=5&tpage=1&view=topic&postid=86063
If the VIP you're using the iRule is only used for HTTP you could hardcode it to http://. If it could be used on an http or https VIP, you could either check TCP::local_port for 80 or 443, check [PROFILE::exists clientssl]==1 to see if a client SSL profile is configured on the VIP, or use SSL::cipher to check if the connection was encrypted.
Aaron
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