Hi Earl
The cookies will only be written to the file specified by the cookiejar option
when the curl handle is garbage collected.
If you use
rm(ch)
gc()
the cookie.txt file should be created.
This is the way libcurl behaves rather than something RCurl introduces.
If you don't explic
Hi Earl,
Have you read the libCurl documentation for CURLOPT_COOKIEJAR? :
Pass a file name as char *, zero terminated. This will make libcurl
write all internally known cookies to the specified file when
curl_easy_cleanup(3)is called. If no cookies are known, no file will
be created. Specify "-"
R-helpers,
When I use cURL in the Terminal:
curl --cookie-jar cookie.txt --url "http://corpusdelespanol.org/x.asp";
--user-agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0)
Gecko/20100101 Firefox/23.0" --location --include
a cookie file "cookie.txt" is saved to my working directory.
3 matches
Mail list logo