Fix curl issue #3

prepended self. to curl() calls
Merge pull request #4 from ch82/master

Issue #3 "Curl error" fixup.

Thank you!