Skip to content

Instantly share code, notes, and snippets.

@marr
Created June 17, 2011 00:52
Show Gist options
  • Save marr/1030658 to your computer and use it in GitHub Desktop.
Save marr/1030658 to your computer and use it in GitHub Desktop.
require( 'assert' );
require( 'request' );
var options = {
uri:'http://www.postbin.org/1knazzd'
, body:"\n"
, method: 'POST'
};
exports.testRequest = function(){
request(options, function( error, response, body ) {
assert.equals( response, '' );
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment