comparison PalantirCppClient/HttpClient.cpp @ 29:042ac60f5bf9

simplified build of curl
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 29 Aug 2012 15:27:13 +0200
parents 6ba765ecf3db
children 9be852ad33d2
comparison
equal deleted inserted replaced
28:ef264c1e9ee5 29:042ac60f5bf9
42 42
43 static CURLcode CheckCode(CURLcode code) 43 static CURLcode CheckCode(CURLcode code)
44 { 44 {
45 if (code != CURLE_OK) 45 if (code != CURLE_OK)
46 { 46 {
47 printf("ICI: %s\n", curl_easy_strerror(code));
47 throw HttpException("CURL: " + std::string(curl_easy_strerror(code))); 48 throw HttpException("CURL: " + std::string(curl_easy_strerror(code)));
48 } 49 }
49 50
50 return code; 51 return code;
51 } 52 }