Implements http proxy server which sends requests through the socks proxy (proxies)
You can specify proxy or proxyList options. If proxyList is specified, proxy will be selected randomly
var ProxyServer = require('proxy-server');
var options = {
//proxy: '127.0.0.1:9050',
proxy: null,
proxyList: './proxy.list',
proxyListReloadTimeout: 60 // one minute
};
ProxyServer.createServer(options).listen(8080);
proxy.list
must be in the following format:
host:port
host:port:login:password
- does not support Keep Alive for http at all