RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebRequest.Host Property

Reports the value of the Host header of the HTTP request message.

Pascal
property Host: AnsiString;
C++
__property AnsiString Host;

Read Host to determine the Internet host and port number of resource being requested. For example, if the client request specifies the following URL:

http://www.TSite.com/art/gallery.cgi/mammals?animal=dog&color=black

The value of Host would be

www.TSite.com

The value of Host can be used to differentiate between internally ambiguous URLs, such as the root "/" URL of a server for multiple host names on a single IP address. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!