cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl error CURLE_SEND_FAIL_REWIND

From: Ravi Kasibhatla <kasibhatla.ravi_at_gmail.com>
Date: Sat, 23 Jan 2010 21:28:54 +0530

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 <daniel_at_haxx.se> 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
Received on 2010-01-23