Previous |
Next
GetFileSizeLastModified Method
Retrieves the file size and last modified date for the specified file URL.
GetFileSizeLastModified( String url, String referer,
String userName,
String password,
Integer options
) |
Parameters
url Type: String The URL of the file for which the file size and
last modifed date is to be retrieved. The
url must start with one of the following network protocol designators:
- "http://" - HTTP protocol
- "https://" - HTTPS protocol (secure HTTP, HTTP over SSL)
- "ftp://" - FTP protocol
- "ftps://" - Secure FTP, FTP over SSL
referer Type: String The referer parameter used in HTTP/HTTPS
requests. It can also be set to "" (empty string).
userName Type: String The user name of the login credentials in
case authentication is required on the server, otherwise set it to "" (empty
string).
password Type: String The password of the login credentials in
case authentication is required on the server, otherwise set it to "" (empty
string).
options Type: Integer The additional options:
- 0 - Explicit FTPS is used if the
url parameter designates secure FTP (FTPS) protocol.
- 1 - Implicit FTPS is used if the
url parameter designates secure FTP (FTPS) protocol.
In all
other cases, the options parameter is not important and can be set to 0.
Remarks
The file size and last modified date for the specified url are
retrieved via the OnGetFileSizeLastModified event which is fired after the
information has been received from the server.
|