Update README.

This commit is contained in:
Miao Jiang 2013-02-19 21:26:38 +08:00
parent 286b62cc2e
commit 44fb876123
2 changed files with 3 additions and 1 deletions

View file

@ -115,6 +115,7 @@ Methods:
Curl setopt(optionName, optionValue) Curl setopt(optionName, optionValue)
Curl perform() Curl perform()
Curl on(eventType, callback) Curl on(eventType, callback)
Mixed getinfo(infoName)
Events: Events:

View file

@ -24,7 +24,8 @@ curl.on('error', function(e) {
curl.on('end', function() { curl.on('end', function() {
p('done.') p('done.');
p('code: ' + curl.getinfo('RESPONSE_CODE'));
curl.close(); curl.close();
}); });