So imagine we have TCP server recieving all browser requests. How a cookie generated by some JavaScript function like:
function writeCookie()
{
var the_cookie = "users_resolution="+ screen.width +"x"+ screen.height;
document.cookie=the_cookie
location = location.href;
}
Will loock if some browser like chrome will come to such server? what will full page requesl look like?
It comes through as part of the HTTP request header (look at the spec or http://en.wikipedia.org/wiki/HTTP_cookie for a quick overview). HTTP just looks like normal payload data as far a TCP is concerned. I would drag out a packet sniffer and capture some traffic.