This script is served as a netsniff example for CasperJS. It will go to a url you defined and generate a har file for you.
Please read inline comments on how to make this example a more powerful tools for casper.
Usage: casperjs /path/to/netsniff.js url_to_test