YenForYang has asked for the wisdom of the Perl Monks concerning the following question:
I've never used libcurl before, but I wanted to start using it in curl for improved HTTP performance. I've been looking through all the Net::Curl::Easy:: keys, browsing the contents and comparing with curl.haxx.se and noticed that Net::Curl doesn't have a curl_easy_cleanup function.
I'm asking this because on the manual page for CURLOPT_COOKIEJAR, it says
...will make libcurl write all internally known cookies to the specified file when curl_easy_cleanup is called.
So...How does one store cookies in a cookie jar (file) by specifying CURLOPT_COOKIEJAR?
EDIT: To give an idea of what I'm trying to do for now (this case): I'm making a simple GET request pretty much equivalent to this: curl -qsL -b cookies.txt -c cookies.txt <URL> and parse the html response content (html of URL).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Learning/Trying to use Net::Curl with Cookie Jar
by YenForYang (Beadle) on Feb 22, 2018 at 19:56 UTC | |
|
Re: Learning/Trying to use Net::Curl with Cookie Jar
by Anonymous Monk on Feb 22, 2018 at 14:47 UTC | |
by YenForYang (Beadle) on Feb 22, 2018 at 16:53 UTC |