Forum Discussion
Chris_Phillips
Nimbostratus
Nov 20, 2006redirerect based on CONNECT hostname
Hi,
can anyone tell me how to get the intended recipient of an HTTPS CONNECT request in an irule. i have been assuming that there would be an HTTP::host header as part of the CONNECT method ...
hoolio
Cirrostratus
Nov 20, 2006So it looks like the CONNECT method doesn't require the Host header then. Can you add some logging to see what you're getting for the HTTP::uri and other headers?
when HTTP_REQUEST {
if { [HTTP::method] == "CONNECT" }{
log local0. "Host: [HTTP::host]"
log local0. "URI: [HTTP::uri]"
set cnt 0
foreach aHeader [HTTP::header names] {
log local0. "h$cnt: $aHeader: [HTTP::header $aHeader]"
incr cnt
}
}
}[edited to just log for CONNECT requests]
Aaron
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