Skip to content

Instantly share code, notes, and snippets.

@titanous
Created May 24, 2011 22:52
Show Gist options
  • Select an option

  • Save titanous/989941 to your computer and use it in GitHub Desktop.

Select an option

Save titanous/989941 to your computer and use it in GitHub Desktop.
node.js v0.4.8 https.get regression
var https = require('https');
https.get({ host: 'www.google.com', path: '/accounts/o8/site-xrds?hd=jadedpixel.com' }, function(res) {
res.on('data', function(d) {
console.log('chunk');
});
res.on('end', function() {
console.log('end');
});
}).on('error', function(e) {
console.error(e);
});
$ /usr/local/Cellar/node/0.4.7/bin/node get.js
chunk
chunk
chunk
end
$ /usr/local/Cellar/node/0.4.8/bin/node get.js
chunk
chunk
chunk
$
@airhorns
Copy link
Copy Markdown

Sweet test dude

@titanous
Copy link
Copy Markdown
Author

I'm not happy right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment