Send HTTP request

Get page on example.com

HTTP.get( {
url: "http://example.com",
success: '/onLoading',
error: '/onError'
// headers: headers - if you need headers
// background: true - if you have timeout error
} )
/* also you can send POST request
HTTP.post( {
url: "http://example.com",
success: '/onLoading ',
body: {}, // body params
// cookies: "" // cookies
// headers: headers - if you need headers
} )
*/

Command onLoading

// downloaded page stored on content field
Bot.sendMessage(content)
Bot.inspect(http_status) // "200"
Bot.inspect(cookies) // is blank for example.com

Command onError

Bot.sendMessage("Error on downloading");
Bot.inspect(http_status);
Bot.inspect(cookies);

Http request can be performed in background with bigger timeout.

Pass background: true if you need request from slow web page. Task on backgroud is more slowly but it have bigger timeout limit.