Added exception throwing to curl client call
Merge pull request #2 from vacatia/addCurlErrorHandling

Added exception throwing to curl client call