Hello World

HttpRequest sends a request to a server.

app.HttpRequest( type, baseUrl, path, params, callback, headers )

baseUrl and path will just be added to one string to get the address.
Multiple parameters are available using pipes:

Example - Get Funfact

var address = "";

app.HttpRequest( "GET", address, null, null, handleReply );

function handleReply( error, reply )
    if( error ) alert( reply );
        var funfact = reply.slice( reply.indexOf("<i>") + 3, reply.indexOf("</i>") );
        alert( funfact );
    Copy     Copy All       Run      
string: url path
string: “GET” or “POST”
function( error, reply )