class Server { static function main() { var params = php.Web.getParams(); var s = params.exists('s') ? params.get('s') : 'none'; var http = new haxe.Http("http://yaxu.org/babble/save/index.php"); http.setHeader("Content-Type","text/plain; charset=ISO-8859-1"); http.setParameter("s",s); // send as GET http.request(false); } }