Created
April 13, 2016 22:13
-
-
Save nch7/00eccc14c9fe9a27b1bfabc8e6468fa3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 HttpsProxyAgent = require('https-proxy-agent'); | |
var request = require('request'); | |
var agent = new HttpsProxyAgent('http://192.69.250.116:1212') | |
request({ | |
agent: agent, | |
"uri": "http://requestb.in/1a5eo7b1", | |
"method": "GET" | |
}, function(err, response, body) { | |
console.log(err, body); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment