nock
nock("http://www.google.com") .filteringPath(function(path){ return '/'; }) .get("/") .reply(200, "this should work?"); request("http://www.google.com?value=bob", function(err, res, body) { return console.log(body); });