node-chimera icon indicating copy to clipboard operation
node-chimera copied to clipboard

Add Proxy support

Open dudleycarr opened this issue 13 years ago • 4 comments

Be able to specify a proxy server to use along with cookies, user agent, etc.

dudleycarr avatar Jan 03 '13 17:01 dudleycarr

sure thing, sounds like an obvious thing to add.

deanmao avatar Jan 03 '13 18:01 deanmao

Supported added in here: https://github.com/deanmao/node-chimera/commit/06895302fe4178f4417dafbaf905237d321e8f7f

Haven't produced binaries for it yet, but when the next npm package goes out, I will. Basic use would be like this:

var chimera = new Chimera({proxy: {
                 type: "socks", 
                 port: 1080, 
                 host: "mysocks.server.com", 
                 username: "myuser", 
                 password: "mypass"}});

You can also change proxies midway through your code by doing something like this:

chimera.setProxy("socks", "mysocks.server.com", 1080, "myuser", "mypassword");

The type of proxy can either be "socks" or "http".

deanmao avatar Jan 07 '13 20:01 deanmao

Awesome! Thanks. I'll try it out shortly.

dudleycarr avatar Jan 14 '13 19:01 dudleycarr

Do you know when the next binary will go out? Or instructions on how to build them? I need proxy support

jbrumwell avatar Apr 03 '13 02:04 jbrumwell