From 44fb876123b7b59b97ba6a15b376eb78a3436081 Mon Sep 17 00:00:00 2001 From: Miao Jiang Date: Tue, 19 Feb 2013 21:26:38 +0800 Subject: [PATCH] Update README. --- README.md | 1 + examples/low-level.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 04f1cef..eadc9a9 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,7 @@ Methods: Curl setopt(optionName, optionValue) Curl perform() Curl on(eventType, callback) + Mixed getinfo(infoName) Events: diff --git a/examples/low-level.js b/examples/low-level.js index b5d71ff..e274660 100644 --- a/examples/low-level.js +++ b/examples/low-level.js @@ -24,7 +24,8 @@ curl.on('error', function(e) { curl.on('end', function() { - p('done.') + p('done.'); + p('code: ' + curl.getinfo('RESPONSE_CODE')); curl.close(); });