libcurl in WebKit

<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...

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章