Thanks Daniel. No I haven't set CURLOPT_SEEKFUNCTION or CURLOPT_IOCTLFUNCTION. I will try out those options and try to resolve the issue.
Cheers!!! phani On Tue, Jan 19, 2010 at 5:17 PM, Daniel Stenberg <[email protected]> wrote: > On Tue, 19 Jan 2010, Ravi Kasibhatla wrote: > > Can anyone give me more information on when does we get the error >> CURLE_SEND_FAIL_REWIND? Also, how to stop from getting this error or how >> should an application behave when we get this error? >> > > Do you have a CURLOPT_SEEKFUNCTION or CURLOPT_IOCTLFUNCTION set? > > At some situations when doing uploads (with authentication), libcurl sends > away data that is then discarded by the server and thus libcurl needs to > rewind to resend the data. It then calls the seek function (or the ioctl > function which is the older one). > > If your callback isn't set or if it returns a failure, libcurl will return > CURLE_SEND_FAIL_REWIND. It really needed to rewind but couldn't. > > -- > > / daniel.haxx.se > ------------------------------------------------------------------- > List admin: http://cool.haxx.se/list/listinfo/curl-library > Etiquette: 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
