rainbowsocks-http

http interface for tunneling though a SOCKS4a proxy

npm install rainbowsocks-http
2 downloads in the last week
4 downloads in the last month

rainbowsocks-http

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

Install

npm install rainbowsocks-http

API

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

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

Example

// 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);
});

Licence

MIT

npm loves you