ad_host (public)

 ad_host

Defined in packages/acs-tcl/tcl/request-processor-procs.tcl

Returns the hostname as it was typed in the browser, provided forcehostp is set to 0.

Testcases:
package_normalize_path, xowiki_test_cases, link_tests, slot_interactions, path_resolve
Source code:
    set host_and_port [ns_set iget [ns_conn headers] Host]
    if { [regexp {^([^:]+)} $host_and_port match host] } {
        return $host
    } else {
        return ""
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: