Message
(string) Either a blank string ("") or an information message being sent by the server, such as "Resolving host name" or "Connecting to Server."
The callback function should return a boolean value (true or false) indicating whether the file access should continue:
VALUE DESCRIPTION |
|
true |
Continue with the file access. |
false |
Stop the file access as soon as possible. |
Re t u r n s
(number) The size of the file on the Internet Web site (in bytes). If the file's size could not be retrieved, -1 is returned. You can use Application.GetLastError to determine whether this action failed, and why.
See also: Related Actions
HTTP.GetFileSizeSecure
OverviewExamples
number HTTP.GetFileSizeSecure ( string URL,
number Mode = MODE_BINARY,
number Timeout = 20, number Port = 443, table AuthData = nil, table ProxyData = nil,
function CallbackFunction = nil )
De s cr ip t ion
Gets the size of a file (in bytes) located on an Internet Web site using HTTPS (secure hypertext transfer protocol).
The secure hypertext transfer protocol (HTTPS) is a communications protocol designed to transfer encrypted information between computers over the World Wide Web. HTTPS is http using a Secure Socket Layer (SSL). A secure socket layer is an encryption protocol invoked on a Web server that uses HTTPS.
Note: The successful use of the HTTPS protocol requires a secure server to handle the request.
Note: This action requires that the end user has Internet Explorer version 4.0 or greater installed.
Note: The default proxy settings that are currently configured through Internet Explorer will be used for the download by default, and is the recommended method. However if you require alternate proxy settings, they can be passed through the ProxyData parameter.
Tip: If this action fails, you can retrieve specific HTTP error details using HTTP.GetHTTPErrorInfo.
P arame t er s
URL
(string) The full URL to the file you want to get the size of.