CURLOPT_PROXY is avaiting a NULL terminated C string (char *), so we have to give...
authorBjoern Sikora <bjoern.sikora@intra2net.com>
Wed, 26 Aug 2009 08:25:51 +0000 (10:25 +0200)
committerBjoern Sikora <bjoern.sikora@intra2net.com>
Wed, 26 Aug 2009 08:25:51 +0000 (10:25 +0200)
src/iphelper.cpp

index 7dd8e01..4fac2d0 100644 (file)
@@ -271,7 +271,7 @@ CURL * IPHelper::init_curl(string& curl_writedata_buff,char* curl_err_buff) cons
 
     if ( !Proxy.empty() )
     {
-        curl_easy_setopt(curl_easy_handle,CURLOPT_PROXY,Proxy);
+        curl_easy_setopt(curl_easy_handle,CURLOPT_PROXY,Proxy.c_str());
         curl_easy_setopt(curl_easy_handle,CURLOPT_PROXYPORT,ProxyPort);
     }