Skip to content
Prev 241559 / 398500 Next

RCurl and cookies in POST requests

Hi Christian

 Thanks for finding this. The problem seems to be that the finalizer
on the curl handle seems to disappear and so is not being called
when the handle is garbage collected.  So there is a bug somewhere
and I'll try to hunt it down quickly.

  In the meantime, you can achieve the same effect by calling the
C routine curl_easy_cleanup.  You can't do this directly with a
.Call() or .C() as there is no explicit interface in the RCurl
package to this routine. However, you can use the Rffi package
(on the omegahat  repository)

 library(Rffi)
 cif = CIF(voidType, list(pointerType))
 callCIF(cif, "curl_easy_cleanup", curl at ref)

 I'll keep looking for why the finalizer is getting discarded.

 Thanks again,

 D.
On 11/14/10 6:30 AM, Christian M. wrote: