add some comments

This commit is contained in:
jiangfriend@gmail.com 2012-02-14 21:19:06 +08:00
parent 314d43203f
commit d1b7f36918
4 changed files with 17 additions and 13 deletions

View file

@ -14,7 +14,8 @@ curl(url, options, function(err, res) {
res.close();
});
curl('www.google.com', {VERBOSE: 1, RAW: 1}, function(err, res) {
curl('https://www.google.com', {VERBOSE: 1, RAW: 1}, function(err, res) {
console.info("\x1b[33meffetcive url: " + res.info('EFFECTIVE_URL') + "\x1b[0m");
console.info(res);
res.close();
});