w3Utils Reference

Reference


w3 NetUtils



 w3.NetUtils
    DebugWrite( szString ) : 
    HTTPGet( szURL, [szAuthentication], [dwMaxSize] ) : String
    Ping( szHostName ) : Integer
    RLookup( host ) : String


Methods

  DebugWrite(szString) : 
Writes a string to NetDebug (tm).

Please see separate chapter on NetDebug for further informatioon.
var pageName = 'Examples Page';
NetUtils.DebugWrite( 'Now executing: ' + pageName );

// writes 'Now executing: Examples page' in the NetDebug window
  HTTPGet(szURL, [szAuthentication], [dwMaxSize]) : 
Retreives an URL and returns the HTTP output from it.

You can optionally provide authorization information and maximum allowed return size.
var aPage = NetUtils.HTTPGet( 'http://www.news.com/', 'userName:password' , 1024 * 16 );


// aPage would contain the whole HTTP output including actual page
  Ping(szHostName) : 
Returns the number of miliseconds for a Ping reply of a specified host.

Negative value indicates error.
var pingValue = NetUtils.Ping( "duplo.org" );
  RLookup(host) : 
Returns the "real" name of an IP address or host name
var PTRName = netutils.RLookup( "193.15.14.166" )