Created
April 14, 2012 17:28
-
-
Save RobSpectre/2386100 to your computer and use it in GitHub Desktop.
Simple reverse proxy of Facebook API
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 http = require('http'), | |
https = require('https'), | |
httpProxy = require('http-proxy'); | |
httpProxy.createServer(function (req, res, proxy) { | |
console.log("Received request."); | |
proxy.proxyRequest(req, res, { | |
host: 'graph.facebook.com', | |
port: '443', | |
https: true | |
}); | |
console.log(proxy); | |
}).listen(8000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does this allow one to use facebook as a proxy server or what does it exactly do?