开发者

Setting existing cookies to use with libcurl

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜