Created by: timmattison
My installation doesn't like the parameters passed as "http, port" to getAgent. I think instanceof may want these variables to be instantiated with the String constructor according to some JavaScript documentation found online but I'm not sure.
In this patch all I did was create an options object and used it in both the HTTP and HTTPS constructors. After that the examples work again.