Forum Discussion
Katherine_G_106
Nimbostratus
Oct 29, 2009examining the "http://" portion of a url
Hi!
I need help to learn how to examine the "http://" or "https://" part of a url in an http_request. I know it's not [HTTP::host] or [HTTP::uri]. Surely there must be a method for doing this? ...
hoolio
Cirrostratus
Oct 29, 2009Hi Katherine,
If you check the actual HTTP headers the browser sends on normal HTTP or HTTPS requests, the protocol of http:// or https:// is not included anywhere. The protocol of HTTP or HTTPS in links tells the browser how to open the connection and whether to use SSL or not. The main exception to this that I've seen is when clients connect to a web proxy and include use an absolute URL in the request line:
GET http://www.google.com/search HTTP/1.1
Can you elaborate on what you're trying to do?
You might be able to use the destination TCP port (retrieved using TCP::local_port in a clientside event like CLIENT_ACCEPTED or HTTP_REQUEST. Or you could check if there is a client SSL profile enabled on the virtual server using [PROFILE::exists clientssl]==1. I've read on the forums that using PROFILE:: commands has a higher overhead than checking the TCP port.
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