http HostName property
Return to Introduction  Previous page  Next page
Applies to
WinHTTP component.  

Declaration
property HostName: Boolean; // Read-only !!  

Description
The HostName is optional and read-only property used to exctract the host name from the HTTP address specified in the URL property.  

Example
WinHTTP1.URL := 'http://www.abc.com/download/filename.zip';  
Result := WinHTTP1.HostName;  
// Result will be 'www.abc.com';  

See also
URL and FileName properties.