ConnectionSpeed Property

 

Type: Integer

 

Returns the visitor’s download connection speed throughput in bits per second. For upload speed see the UploadConnectionSpeed property.

 

Important: You can choose either the "Progressive" or "Original" method of testing the connection speed. The Progressive method is recommended, but requires some basic setup before first time use and may result in increased fees from your hosting provider due to the bandwidth the test uses. Therefore the Original method of testing is the default. See Progressive Versus Original Speed Tests for more information.

 

Note: You must call the GetExtPropertiesEx method before checking the value of this property. This property requires the Professional or Enterprise Edition of BrowserHawk.

 

Note: If you want to use the Progressive method of testing, you must set the SpeedCheckType property to indicate you wish to use the Progressive testing method, set the SupportFilesRoot property as required by the Progressive testing method, copy the speed test image files to your server as explained in the Progressive testing section, and call the GetExtPropertiesEx method before checking the value of this property.

 

Tip: See the speed.asp for a working example of the connection speed test using the Progressive method, or the speed-orig.asp for the Original method.

 

Example:

<% set bhObj = Server.CreateObject("cyScape.browserObj")

bhObj.SetExtProperties "ConnectionSpeed"

'  The following comments apply only if performing a Progressive speed check (defaults to "Original" speed check)

'     (Progressive method is recommended for best accuracy and testing control):

'     Note that image files are required to be placed on your website prior to use. See Progressive Speed Check topic.

'     bhObj.SpeedCheckType = 1

'     bhObj.SupportFilesRoot = "url where you placed speed test image files"

bhObj.GetExtPropertiesEx

%>

<html>

  Your download connection speed in bits per second is: <% = bhObj.ConnectionSpeed %> <p>

  Your download connection speed for nicely formatted display purposes is: <% = bhObj.Translate("ConnectionSpeed") %> <p>

</html>

 

Special notes for this property:

 

See Also:

ConnectionLatency Property

Detecting Connection Speed and Dialup Users

Progressive Versus Original Speed Test

EstDownloadTimeSec Method

EstDownloadTimeDesc Method