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