Hi, im trying to do an app connecting with my alarm to automatize it, however when i put the next code to try something basic as getTitle of my web, i get a 500 We're sorry,but something went wrong(500):
var casper = require('casper').create();
//var utils = require('utils');
//casper.start('
https://www.myweb.es/');
casper.start();
casper.open('
https://www.myweb.es/', {
method: "get"
});
if (casper.start('
https://customers.securitasdirect.es'))
{
console.log('Success');
}
else
{
console.log('Not even close');
}
casper.then(function() {
this.echo('First Page: ' + this.getTitle());
//utils.dump(this);
});
/*casper.thenOpen('
http://casperjs.org', function() {
this.echo('Second Page: ' + this.getTitle());
});*/
casper.run();
The fact is, i have and If to see that connection exists however, for the First Page: i get the 500 error, any help?