--- smsdaemon/HttpClient.cpp 2008/12/18 06:47:26 195 +++ smsdaemon/HttpClient.cpp 2008/12/18 06:53:29 196 @@ -11,7 +11,8 @@ std::string UrlEncode(std::string url) { std::ostringstream ss; - for (unsigned i=0; i* vec = reinterpret_cast< std::vector* >(stream); int i; - for (i=0; ipush_back( bytes[i] ); - } + for (i=0; ipush_back( bytes[i] ); + } return i; } @@ -48,13 +49,13 @@ curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errmsg); - curl_easy_setopt(curl, CURLOPT_URL, url.c_str() ); - curl_easy_setopt(curl, CURLOPT_FAILONERROR,1); - curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, writefunction); + curl_easy_setopt(curl, CURLOPT_URL, url.c_str() ); + curl_easy_setopt(curl, CURLOPT_FAILONERROR,1); + curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, writefunction); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &buf); - int res = curl_easy_perform(curl); - curl_easy_cleanup(curl); + int res = curl_easy_perform(curl); + curl_easy_cleanup(curl); if (res != 0) throw httpexception(errmsg);