ADDED FORWARD PROXY CONFIGURATION AND CLIENT (#11708)
This commit is contained in:
11
nginx-forward-proxy/proxytest.js
Normal file
11
nginx-forward-proxy/proxytest.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var request = require('request');
|
||||
|
||||
request({
|
||||
'url':'http://www.google.com/',
|
||||
'method': "GET",
|
||||
'proxy':'http://192.168.100.40:8888'
|
||||
},function (error, response, body) {
|
||||
if (!error && response.statusCode == 200) {
|
||||
console.log(body);
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user