Hi, I am using the following code to rename a remote file on a webdav server. curl_easy_setopt(mCurlHandle, CURLOPT_URL, "http://servername/folder"); // Default to download curl_easy_setopt(mCurlHandle, CURLOPT_UPLOAD, (long)0); // Clear any custom requests curl_easy_setopt(mCurlHandle, CURLOPT_CUSTOMREQUEST, NULL); // Don't do filetime checks by default curl_easy_setopt(mCurlHandle, CURLOPT_FILETIME, NULL); // set timeout based on channel properties. curl_easy_setopt(mCurlHandle, CURLOPT_TIMEOUT, (long)0); curl_easy_setopt(mCurlHandle, CURLOPT_CONNECTTIMEOUT, (long)10); curl_easy_setopt(mCurlHandle, CURLOPT_TRANSFERTEXT, 1); // enable progress callbacks curl_easy_setopt(mCurlHandle, CURLOPT_NOPROGRESS, (long)0); curl_easy_setopt(mCurlHandle, CURLOPT_HTTPHEADER, NULL); curl_easy_setopt(mCurlHandle, CURLOPT_USERPWD, mContext.mUserPass.c_str()); curl_easy_setopt(mCurlHandle, CURLOPT_INFILESIZE, -1); curl_easy_setopt(mCurlHandle, CURLOPT_HTTPAUTH, NULL); curl_easy_setopt(mCurlHandle, CURLOPT_PROXY, NULL); curl_easy_setopt(mCurlHandle, CURLOPT_HTTPPROXYTUNNEL, (long)0); curl_easy_setopt(mCurlHandle, CURLOPT_PROXYTYPE, NULL); curl_easy_setopt(mCurlHandle, CURLOPT_PROXYAUTH, NULL); curl_easy_setopt(mCurlHandle, CURLOPT_PROXYUSERPWD, NULL); curl_easy_setopt(mCurlHandle, CURLOPT_NOBODY, (long) 0); curl_easy_setopt(mCurlHandle, CURLOPT_PUT, (long) 1); // set the HTTP method appropriately curl_easy_setopt(mCurlHandle, CURLOPT_CUSTOMREQUEST, "MOVE"); // add our headers curl_slist* headers = NULL; headers = curl_slist_append(headers, "Overwrite: F"); headers = curl_slist_append(headers, "Destination: http://<servername>/renamedfolder"); curl_easy_setopt(mCurlHandle, CURLOPT_HTTPHEADER, headers); // ask curl to list the directory CURLcode aCURLcode = curl_easy_perform(mCurlHandle); curl_easy_perform either times out or returns a curle_aborted_by_callback error. This is happening after i upgraded to curl 7.38 from 7.22. Do I have to set any other options? What am i missing? This only happens on Mac, not on windows. Thanks, Vishakha
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
