Created
October 30, 2013 12:21
-
-
Save jamescarr/7231739 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https = require 'https' | |
| fs = require 'fs' | |
| options = | |
| host: 172.42.1.62 | |
| port: 4242 | |
| method: 'GET' | |
| path: '/containers/json' | |
| key: fs.readFileSync('ssl/client.key') | |
| cert: fs.readFileSync('ssl/client.crt') | |
| headers: { 'Accept': 'application/json'} # not required, but being semantic here! | |
| req = https.request options, (res) -> | |
| console.log res | |
| req.end() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment