curl-library
Re: Curl error CURLE_SEND_FAIL_REWIND
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 19 Jan 2010 12:47:14 +0100 (CET)
Date: Tue, 19 Jan 2010 12:47:14 +0100 (CET)
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.htmlReceived on 2010-01-19