Hi all,

Shall b thankful if anybdy could help me in this!

i am having following setopts
      int iRet = curl_easy_setopt(curl, CURLOPT_URL, balance_url);
        iRet = curl_easy_setopt(curl, CURLOPT_USERPWD, "isayuid:pwd1s4y");
        iRet = curl_easy_setopt(curl, CURLOPT_PORT, 8282);
        iRet = curl_easy_setopt(curl, CURLOPT_TIMEOUT, 0);
        iRet = curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, 
CURL_HTTP_VERSION_1_1);
        iRet = curl_easy_setopt(curl, CURLOPT_NOSIGNAL );
        iRet = curl_easy_setopt(curl, CURLOPT_POST, 1);
        iRet = curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data);
        iRet = curl_easy_setopt(curl, CURLOPT_URL, balance_url);
        iRet = curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, readheaders);
        iRet = curl_easy_setopt(curl, CURLOPT_HEADERDATA, &headers);
        iRet = curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, readdata);
        iRet = curl_easy_setopt(curl, CURLOPT_WRITEDATA, resultBuff);
        iRet = curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1);
        iRet = curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, error );
        iRet = curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
        int curlreturn = curl_easy_perform(curl);

when i test this with sample program curl is able to get connectde to url and 
returns approriate results.
But when i try to do the same thru my multithreaded application, it returns
* About to connect() to 192.168.31.82 port 8282
*   Trying 192.168.31.82... * Failed to connect to 192.168.31.82: No such file 
or directory
* Error 0
* Closing connection #0

curl returned 7
===Failed to connect to 192.168.31.82: No such file or directory===

Can anybdy help me resolve this? 
Thanks,
Deepali
_______________________________________________
cURLpp mailing list
[email protected]
http://www.rrette.com/mailman/listinfo/curlpp

Reply via email to