On Mon, 24 Jan 2011, [email protected] wrote:
I used to reset the curl handle using curl_easy_reset if the handle existed
and this worked for me previously. While merging with the latest version my
application code was not working as it was intended. The library failed to
embedd(XML data) the data that I passed for the second time. So the first
request was always sucess and the subsequent requests were failures. Some
one did suggested not to use curl_easy_reset. I tried it and it seems to
work with the latest LIBCURL version available
My query is that should not the curl_easy_reset work as it was working in
the previous releases?
Yes it should, except for bugs we fixed of course. It'd be great if you could
provide us with a small recipe showing how repeat this problem. Then we could
turn that into a test case and make sure it'll remain working even in the
future...
From the code from the curl_easy_reset it seems to me that it resets the
timer and other data.
curl_easy_reset() should put the handle back in the same state as it was just
after curl_easy_init() was called. That would imply clearing timers and data,
wouldn't it?
What exact funtionality did you depend on that is no longer there? Perhaps you
inadvertantly depended on a bug?
--
/ daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html