Download
Manual

*************************************************
2007-08-19 Release 0.5.10 public beta
-------------------------------------------------
+ _CryptString() _CryptFile()
+ _HTTPGet() _HTTPGetFile() non-blocking
+ _HTTPBusy()
x logging is off by default

Code:
//----------------------------------------------------------------------------------------
// function: httprequest
// purpose: demo http request
//------------------------------------------------------------------
function http() {
var sResult;
diag("\nHTTPGetFile:www.gstools.de\n:");
while(GSTNet_HTTPBusy()){wait(1);}
GSTNet_HTTPGetFile("www.gstools.de","/dmdocuments/GSTNet.zip","GSTNettest.zip");
beep;
while(GSTNet_HTTPBusy()){wait(1);}
sResult = str_create("#100000");
GSTNet_HTTPGet("www.gstools.de","/index.php",sResult);
while(GSTNet_HTTPBusy()){wait(1);}
beep;
diag(sResult);
str_remove(sResult);
}
on_h=http;

//----------------------------------------------------------------------------------------
// function: crypt
// purpose: demo crypt
//------------------------------------------------------------------
function crypt() {

diag("\nCryptString:");
GSTNet_CryptString("www.gstools.de",sGSTNetTemp);
diag(sGSTNetTemp);
diag(":");

GSTNet_CryptString(sGSTNetTemp,sGSTNetTemp);
beep;
diag(sGSTNetTemp);
}
on_c=crypt;




Andreas
GSTools - Home of
GSTScript 0.9.8: lua scripting for A6/7/8
GSTNet 0.7.9.20: network plugin for A6/7/8
GSTsqlite 1.3.7: sql database plugin for A6/7/8
3DGS Codebase: 57 snippets || 3DGS Downloads: 248 files