Skip to content

Instantly share code, notes, and snippets.

@tojibon

tojibon/proxy.js

Last active Aug 26, 2015
Embed
What would you like to do?
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