Can anyone give me an example of how to use the HTTP module?
I’m trying to execute a GET request…
Seems to be straight forfward:
http://docs.oxygenhq.org/api-http.html
try
{
var response = http.get(“http://someurl.com”,{“Someheader:value”});
log.info(response.someProperty);
}
catch(e){
log.error(e.message);
}
Thanks Sb-mitsi, it worked.