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

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

Description
The FileName is optional and read-only property used to exctract the file name from the HTTP address specified in the URL property.  
 
tip If you would like to specify the target file for downloaded data — use OutputFileName property.  

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

See also
URL, HostName and OutputFileName properties.