#include <acknex.h>
#include <default.c>
#include <acknet.h>
STRING* ip_str = "";
// start the script "ip.php" on a remote server, and return the caller's IP address
function main()
{
var id = http_post("http://underhut.de/postEchtzeit/index.php",NULL);
while (!http_status(id))
wait(1);//wait for the server to reply
if (http_status(id) == 1) { //transfer successful?
http_result(id,ip_str); //get the replied IP
printf(_chr(ip_str));
} else
error("Error during transfer!");
http_free(id); //always cleanup the httpid!
sys_exit(NULL);
}