libcurl in WebKit

来源:互联网 发布:遗传算法 数学原理 编辑:程序博客网 时间:2024/05/07 02:32

<script>

document.cookie="test=a";

</script>

 

In WebKit, this kind of cookies can't be send to server. Let's analysis the reason:

 

In WebKit, this kind of cookie will be parsed by JS engine, and then store to libcurl CookieJar sorted by url, however, in libcurl, CookieJar is only a memory cache if you can't set cookieJarFile.

 

Then libcurl will initial request, in this function, lincurl will read cookieJarFile if it's set. The problem is that CookieJar is not set in this function. So this cookie will not be sent to server.

 

Maybe I didn't describe this clearly...

 

 

原创粉丝点击