Here is my code to check for IP address using http://whatismyipaddress.com/proxy-check
var casper = require("casper").create(),
utils = require('utils');
casper.userAgent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0');
casper.start("http://whatismyipaddress.com/proxy-check", function() {
this.capture('0.png');
});
casper.on('remote.message', function(msg) {
this.echo('Remote: ' + msg);
})
casper.run(function() {
this.echo('End');
//finish execution script
this.exit();
});
I typed casperjs --proxy="xxx.xxx.xxx.xxx:80" proxy.js
But the screenshot is exactly the IP address from my machine.
So how do I know if the proxy is bad or if something wrong in my code or command line?