I finally got my answer, the problem is : I schedule this way :
1- Reset easy handle : curl_easy_reset(pCurl); 2- Then fill again URL and login, password to back to my context of connection: CurlErrorCode = curl_easy_setopt(pCurl, CURLOPT_USERNAME, user); CurlErrorCode = curl_easy_setopt(pCurl, CURLOPT_PASSWORD, passwd); CurlErrorCode = curl_easy_setopt(pCurl, CURLOPT_ERRORBUFFER, CurlErrorBuff); CurlErrorCode = curl_easy_setopt(pCurl, CURLOPT_URL,"ftp://server/dir"); and then perform the easy handle that the mistake : //CurlErrorCode = curl_easy_perform(pCurl); 3-Then in the rest of the code I use command like DELE, PUT, GET with a perform of easy handle Now I just perform once the easy handle between each curl_easy_reset(pCurl). Thanks a lot for your help. 2012/6/5 Daniel Stenberg <[email protected]> > On Tue, 5 Jun 2012, M. Shinkaze wrote: > > so actually don't have a write callback runing on my function. but >> previously on a PUT command I have a call to it. So I could I disable it ? >> by bisable any FTP transfert with CURLOPT_UPLOAD set to "0L" ? >> > > Too little information provided for me to be able to say anything. > > > -- > > / daniel.haxx.se > ------------------------------**------------------------------**------- > List admin: > http://cool.haxx.se/list/**listinfo/curl-library<http://cool.haxx.se/list/listinfo/curl-library> > Etiquette: > http://curl.haxx.se/mail/**etiquette.html<http://curl.haxx.se/mail/etiquette.html> >
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
