assaf/zombie — pull request #318 by zephrax (2012-04-11 19:44:14+00:00)
Title: HTTP Proxy support with basic auth

I made this fix based in some code of https://github.com/chayim/zombie/commit/10e6082f472940cd9006bff586d7a041afae1d2c

But as it was not working (at least for me) I modified the code to make it work.
I've tested it either with and without proxies (both using auth and w/o authentication) and its working fine.

How to use it?

var options = {credentials : { 'scheme' : 'proxy-basic', user: 'proxy_username', password: 'proxy_password' }, proxy: { host : 'proxy.address' , port : proxy_port }};
var b = new Browser(options);

b.visit('http://domain.tld/', function (e, b) {
});

Feel free to send me comments/feedback about it, hope it work for every people who was waiting for this,

Thanks!