util_current_location (public)
util_current_location
Defined in packages/acs-tcl/tcl/utilities-procs.tcl
This function behaves like [ad_conn location], since it returns the location string of the current request in the form protocol://hostname?:port? but it honors the "Host:" header field (when the client addressed the server with a hostname different to the default one from the server configuration file) and therefore as well the host-node mapping. If the "Host" header field is missing or empty this function falls back to [ad_conn location].
- Returns:
- the current location in the form "protocol://hostname?:port?"
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- sync_http_get_document, get_insecure_location, ad_dom_sanitize_html