static void perl_curl_easy_delete( pTHX_ perl_curl_easy_t *easy ) /*{{{*/ { /* this may trigger a callback, * we want it while easy handle is still alive */ curl_easy_setopt( easy->handle, CURLOPT_SHARE, NULL ); /* when using multi handle, the connection may stay open in th +at multi, * but the easy will be long dead. In case of ftp for instance +, connection * closing will send a trailer with no apparent destination */ /* this also disables header callback if not using multi, SORR +Y */ curl_easy_setopt( easy->handle, CURLOPT_HEADERFUNCTION, NULL ) +; curl_easy_setopt( easy->handle, CURLOPT_WRITEHEADER, NULL ); if ( easy->handle ) curl_easy_cleanup( easy->handle ); perl_curl_easy_delete_mostly( aTHX_ easy ); if ( easy->share_sv ) sv_2mortal( easy->share_sv ); Safefree( easy ); } /*}}}*/
Now I just have to figure out how to call it....
In reply to Re: Learning/Trying to use Net::Curl with Cookie Jar
by YenForYang
in thread Learning/Trying to use Net::Curl with Cookie Jar
by YenForYang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |