rainbowsocks-http

http interface for tunneling though a SOCKS4a proxy

rainbowsocks-http

Similar to node.js's http interface tunneling though a SOCKS4a proxy

npm install rainbowsocks-http

var http = require('rainbowsocks-http')(socksPort [, socksHost || '127.0.0.1']);

http.request is the only method available currently with very basic options support.

// var http = require('rainbowsocks-http')(socksPort [, socksHost || '127.0.0.1']); 
var http = require('./')(9050);
 
var req = http.request('http://github.com', function(res) {
  console.log('statusCode: ', res.statusCode);
  console.log('headers: ', res.headers);
  res.on('data', function(data) {
    console.log(data);
  });
});
 
req.on('error', function(err) {
  console.log('oh no: ', err);
});

MIT