开发者

Setting existing cookies to use with libcurl

开发者 https://www.devze.com 2022-12-28 10:32 出处:网络
does current version of libcurl support firefox 3.0 and above cookies file (cookies.sqlite) ? I\'m trying to set the file to allow cookies to be used when retrieving the data from web address.

does current version of libcurl support firefox 3.0 and above cookies file (cookies.sqlite) ? I'm trying to set the file to allow cookies to be used when retrieving the data from web address.

int return_val = curl_easy_setopt(hCurl, CURLOPT_COOKIEFILE, \..\cookies.sqlite);

return_val is zero but i don't get 开发者_Python百科to see the expected data.


You can try to parse the SQLite file.

However, there's addon for firefox that exports cookies in Netscape (*.txt) format.

https://addons.mozilla.org/en-US/firefox/addon/8154

0

精彩评论

暂无评论...
验证码 换一张
取 消