next up previous contents
Next: getHttpFileLastModifiedTime Up: Methods Previous: getUrl   Contents

getHttpFileSize

Description

Retrieves the size of a Http file.


Syntax

inet.getHttpFileSize(file)


Parameters

file
string. specifies the link of the Http file to get its size.


Returns

Integer. If the file doesn't exists or the method fails, it will return -1.


Example

var url = "http://www.swfkit.com/download/sp2.exe";
var size = Inet.getHttpFileSize(url);




Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.