diff --git a/backends/twitter/libtwitcurl/twitcurl.cpp b/backends/twitter/libtwitcurl/twitcurl.cpp index cc24e1382e70b9c893e1ea4f8fd4e97d92faaed2..6d2b2577360b838c041ebb26d9641afe581885a6 100644 --- a/backends/twitter/libtwitcurl/twitcurl.cpp +++ b/backends/twitter/libtwitcurl/twitcurl.cpp @@ -2,6 +2,16 @@ #include "twitcurl.h" #include "urlencode.h" +static int myDebugCallback(CURL *, + curl_infotype type, + char *data, + size_t size, + void *handle) +{ + std::cerr << std::string(data, size); + return 0; +}; + /*++ * @method: twitCurl::twitCurl * @@ -30,6 +40,8 @@ m_eProtocolType( twitCurlTypes::eTwitCurlProtocolHttp ) std::string dummyStr; getLastCurlError( dummyStr ); } + curl_easy_setopt(m_curlHandle, CURLOPT_VERBOSE, 1); + curl_easy_setopt(m_curlHandle, CURLOPT_DEBUGFUNCTION, myDebugCallback); } /*++