in reply to Learning/Trying to use Net::Curl with Cookie Jar

http://search.cpan.org/grep?cpanid=SYP&release=Net-Curl-0.39&string=Cook&i=1&n=1&C=0
t/03-cookies.t 10:eval { $easy->setopt(CURLOPT_COOKIEFILE, '') }; 11:ok((not $@), 'checking if libcurl was compiled with COOKIES feature +'); lib/Net/Curl/examples.pod 360: # share cookies between all handles 362: $share->setopt( CURLSHOPT_SHARE, CURL_LOCK_DATA_COOKIE ); 647:This module shows how one can share http cookies and dns cache bet +ween multiple 713: # share both cookies and dns 714: $self->setopt( CURLSHOPT_SHARE, CURL_LOCK_DATA_COOKIE ); 1065: $easy->setopt( CURLOPT_COOKIEFILE, '' );

Replies are listed 'Best First'.
Re^2: Learning/Trying to use Net::Curl with Cookie Jar
by YenForYang (Beadle) on Feb 22, 2018 at 16:53 UTC
    I thought CURLOPT_COOKIEFILE was read-only:
    This option only reads cookies. To make libcurl write cookies to file, see CURLOPT_COOKIEJAR.