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 ...
RFC2817 seems to indicate that the CONNECT method should include a Host header: (Click here)
CONNECT server.example.com:80 HTTP/1.1
Host: server.example.com:80
Proxy-Authorization: basic aGVsbG86d29ybGQ=
Do you have a client making a request where you don't see the Host header? Or does HTTP::host not return anything even with the Host header in the CONNECT request?
Can you post the request headers for a client request?
If the request line contains the host, you could HTTP::uri and a string (or regex) command to return the host from the URI.
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