Skip to content

Instantly share code, notes, and snippets.

@tojibon
Last active August 26, 2015 05:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tojibon/681098756c238916cb97 to your computer and use it in GitHub Desktop.
Save tojibon/681098756c238916cb97 to your computer and use it in GitHub Desktop.
CasperJS script to test proxy ip address using http://ip-addr.es/
var casper = require('casper').create();
casper.start('http://ip-addr.es/', function() {
var doc = this.evaluate(function() {
return document;
});
this.echo(doc.all[0].outerText);
});
casper.run();
//casperjs --proxy=43.240.123.161:8800 --proxy-auth=PUSER:PPASS proxy.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment