Hi
I am stil trying to get some basic information stored in a database table on my SQL Server.
I can do this by embedding an Applescript do carry out the shell command 'curl' as below:
myFullScriptString = "do shell script \"curl -0 localhost/asset.php?asset_id="+assetID+"\"";
myForceError = app.doScript(myFullScriptString, ScriptLanguage.APPLESCRIPT_LANGUAGE);
return(myForceError);
but I dont want to be limited to OSX.
Is there a way this can be put into a native socket comment using a structure as below?
reply = "";
conn = new Socket();
conn.open("192.168.91.184:8888");
conn.write(" GET /myfile.php?" + variousVariable + " HTTP/1.0\n\n");
reply = conn.read(999999);
conn.close;
Cheers
Roy