Using wget to send data to your internet server and get instructions back
Written by: webDOMinator 1 year and 9 months ago
Did you know that you can actually store scripts on your web server that all of your webDOM's can run? Using wget, you are able to send and receive information using the HTTP GET method. For instance, here's a script that simply reports the current number of people in your list, the place in your list, the loaded plugin and account to the server, and gets back a script... in this case we just make webDOM echo "pong" to see that our little ping script ran in our status output.
Code
varQuick Reference for "var"
Click on command to see examples & comments
Variable Setting Commands
Usage: var:variable-name = expression
Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:myscript=
wgetQuick Reference for "wget"
Click on command to see examples & comments
Filesystem and Shell Commands
Usage: wget:variable:remote-url
Description: Returns the contents of the remote-url from the internet into the variable:var.myscript:http://myserver.com/ping.php?plugin=^
wd.pluginQuick Reference for "wd.plugin"
Click on command to see examples & comments
WebDOM Program Variables
Description: Returns the name of the currently loaded plugin^&curinfo=^
wd.curinfoQuick Reference for "wd.curinfo"
Click on command to see examples & comments
WebDOM Program Variables
Description: Returns the value of the currently selected User ID or item from the info list.^&listsize=^
wd.list.countQuick Reference for "wd.list.count"
Click on command to see examples & comments
WebDOM Program Variables
Description: Returns the current size of the info list in number of entries.^&listindex=^
wd.list.currentQuick Reference for "wd.list.current"
Click on command to see examples & comments
WebDOM Program Variables
Description: Returns the index number of the currently selected User ID or item from the info list.
evaluateQuick Reference for "evaluate"
Click on command to see examples & comments
Script Level Commands
Usage: evaluate:variable
Description: Runs whatever the contents of variable is as minion script.:var.myscript
in this example, we just set up the myscript variable and get back the script... Since we're "wgetting" to a php script online, this means that we can control the script that runs on webDOM server side.
It's possible to pass information back and forth on a scheduled basis by setting my little script up on a my schedule, and since it's not actually interacting with the browser, it can run while other scripts are doing things with the browser and not get in the way of other automation.