Re: libcurl - help needed
- Posted by CraigWelch Oct 24, 2016
- 3557 views
Back, when I was using Ray's libcurl on a daily basis, this is the code I used regarding cookies. It worked as expected.
else -- Direct void = curl_easy_setopt(curl_handle, CURLOPT_PROXYTYPE, CURLPROXY_HTTP) void = curl_easy_setopt(curl_handle, CURLOPT_PROXY, "") void = curl_easy_setopt(curl_handle, CURLOPT_COOKIEFILE, "C:\\EUPHORIA\\greys\\Direct_cookies") void = curl_easy_setopt(curl_handle, CURLOPT_COOKIEJAR, "C:\\EUPHORIA\\greys\\Direct_cookies") void = curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "Opera/9.21 (Windows NT 5.1; U; en)") end if void = curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, 0) -- CURLOPT_CAINFO and CURLOPT_CAPATH would be used to point to certificates, -- but the line above says not to verify the SSL certificate
I'll be re-writing that code for re-use in the next couple of months, I'll report back.