< Back

Document Subject: Get hostname on a web page
Hint Short Cut: Add this to your code & documentation to help you find this page.
http://#HostOnPage or http://A555F9/nn.nsf/ByAlias/HostOnPage

You cannot use CGI variables like HTTP_Referer on a page only in an agent or a form.




 

The answer is to use

@GetHTTPHeader( requestHeader )

Example

@getHTTPHeader("Host")

returns

www.notesninjas.com

 for this page.

 

The name of a request-header field, for example, "From," "Host," or "User-Agent."