GitXplorerGitXplorer
v

node-socksified

public
19 stars
7 forks
3 issues

Commits

List of commits on branch master.
Unverified
2a91396e8de021e16015b14c57b64874dfec68fe

Merge pull request #5 from hayeah/master

vvially committed 12 years ago
Unverified
25d668b55a979b5916249d3cc022522afdbca377

Fix socket.destroySoon() problem with http module.

hhayeah committed 12 years ago
Unverified
9b92937fbe73d5d75f9d849b45ac2120624fd72b

Merge pull request #4 from tcr/master

vvially committed 12 years ago
Unverified
aed5635e84c9f024e7bc855904997490406a157f

v0.0.2

ttcr committed 12 years ago
Unverified
7ceebdfcf450fd23695554ae0bbbc5162c975f4f

Tested in v0.8.14

ttcr committed 12 years ago
Unverified
c1f318646efc6c96d91a89422544a92d496c6126

Support latest Node, probably

ttcr committed 12 years ago

README

The README file for this repository.

HTTP SOCKS5 support for node.js

WARNING: work in progress (for now only SOCKS5 is supported)

Install

$ npm install socksified

TODO

  • Test versions other than Node v0.8.14
  • SOCKS4 support
  • HTTPS support

Example

var http = require('http');
var SocksAgent = require('socksified').SocksAgent;

var socksAgent = new SocksAgent({
  socks_host: '127.0.0.1',
  socks_port: 1080
});

var options = {
    agent: socksAgent,
    host: 'www.google.com',
    port: 80,
    path: '/'
};

http.get(options, function(res) {
    console.log("Got response: " + res.statusCode);
}).on('error', function(e) {
    console.log("Got error: " + e.message);
});