3 #ifndef SZA_UTIL_CURLUTILS_H
4 #define SZA_UTIL_CURLUTILS_H
16 #include <curl/curl.h>
34 std::string getUrl(std::string url,
bool printStats=
false);
36 std::string postUserPass(std::string url, std::string user, std::string pass, std::string challenge);
48 std::ostringstream lastRead_;
53 static size_t handleData(
void* buffer,
size_t size,
size_t nmemb,
void* userp);
62 void cleanUp(CURL* ctx);
67 const CURLcode performRequest(CURL* ctx,
bool printStats);
71 void setUrl(CURL* ctx, std::string url);
80 #endif // End #ifndef SZA_UTIL_CURLUTILS_H