http HostName property
Return to Introduction  Previous page  Next page
Applies to
acHTTP 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
acHTTP1.URL := 'http://www.abc.com/download/filename.zip';  
Result := acHTTP1.HostName;  
// Result will be 'www.abc.com';  

See also
URL and FileName properties.