aacerox/node-rest-client — pull request #3 by stephanbertl (2013-05-24 09:29:51+00:00)
Title: added possibility to provide additional connection options. Fixes bug when connecting to IIS with HTTPS

Now it is possible to provide additional connection options to the
client.

For example it was not possible to connect to SSL-enabled IIS servers
due to not supported encryption. (eg see https://github.com/joyent/node/issues/5360)

use the following args when connecting to IIS with SSL:

args = {
path: {"type": "Events", scope: "Main"},
parameters: {},
headers: {"x-bwin-accessId": ""},
connOptions:
{
secureOptions: constants.SSL_OP_NO_TLSv1_2,
ciphers:
'ECDHE-RSA-AES256-SHA:AES256-SHA:RC4-SHA:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM',
honorCipherOrder: true
}
}