Web.HTTPApp.TWebRequest.Host

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Host: string index 10 read GetStringVariable;

C++

__property System::UnicodeString Host = {read=GetStringVariable, index=10};

Properties

Type Visibility Source Unit Parent
property public
Web.HTTPApp.pas
Web.HTTPApp.hpp
Web.HTTPApp TWebRequest

Description

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

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.

See Also