Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 31 lines (21 sloc) 0.567 kb
0c8f4af @vially Initial commit
authored
1 # HTTP SOCKS5 support for node.js
2
3 __WARNING__: work in progress (for now only SOCKS5 is supported)
4
5 ## Install
6
7 $ npm install socksified
8
9 ## TODO
10
11 - SOCKS4 support
12 - HTTPS support
13
14 ## Example
15
75e7afd @vially Updated README and package.json
authored
16 var http = require('socksified');
0c8f4af @vially Initial commit
authored
17
18 var options = {
19 socks_host: '127.0.0.1',
20 socks_port: 1080,
21 host: 'www.google.com',
22 port: 80,
23 path: '/'
24 };
25
26 http.get(options, function(res) {
27 console.log("Got response: " + res.statusCode);
28 }).on('error', function(e) {
29 console.log("Got error: " + e.message);
30 });
Something went wrong with that request. Please try again.