Skip to content

Instantly share code, notes, and snippets.

@qcom
Last active December 18, 2015 03:59
Show Gist options
  • Save qcom/5722131 to your computer and use it in GitHub Desktop.
Save qcom/5722131 to your computer and use it in GitHub Desktop.
var casper = require('casper').create();
casper.start();
casper.then(function() {
casper.open('http://localhost:3000/test', {
method: 'post',
data: { foo: 'bar' }
});
});
casper.then(function() {
casper.echo('POSTed');
});
casper.run(function() {
casper.echo('done');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment