Created
December 8, 2016 13:57
-
-
Save jreese802/4acea9685c1690c6d756c05ad22fd091 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'); | |
// simple network tests for YoonFong Lee | |
request.get('http://www.ask.com', function (err) { | |
if (err) { | |
console.log("error connecting to ask.com"); | |
console.error(err); | |
return; | |
} | |
console.log("connected to ask.com"); | |
request.get('https://google.com', function (err) { | |
if (err) { | |
console.log("error connecting to google.com"); | |
console.error(err); | |
return; | |
} | |
console.log("connected to google.com"); | |
request.get('https://crossbrowsertesting.com/api/v3/livetests' | |
, {auth: { | |
user: 'frontiersoftware', | |
pass: 'u9edfc33b55fb14b' | |
} } | |
, function(err) { | |
if (err) { | |
console.log("error connecting to cbt api"); | |
console.error(err); | |
return; | |
} | |
console.log("connected to cbt api"); | |
} | |
) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment