A later request can carry a Cookie header.

highlighted = computed this step

A later request asks for the cart path

The later request line gives method GET and path /cart.

/cart requested\text{/cart requested}
Later requestThe later request and cookie match rows are recomputed from pinned bytes.Later request - Set-Cookie sid=7 returns as Cookie sid=7sectionnamevaluecheckstatusstatus200 OKokheaderSet-Cookiesid=7; Path=/parsedcookienamesidlabelcookievalue7labelcookiePath/pinnedheaderContent-Length0no bodyrequest linemethodGETparsedrequest linepath/cartparsedrequest lineversionHTTP/1.1parsedheaderHostshop.exampleexactheaderCookiesid=7sent backcheckSet-Cookiesid=7from responsecheckCookiesid=7from requestcheckPath/pinnedcheckmatchyessame labelchecksent body bytes0empty body

The later Host header names shop.example

The Host row pins the same toy site used for this cookie example.

Host=shop.example\text{Host}=\text{shop.example}
Later requestThe later request and cookie match rows are recomputed from pinned bytes.Later request - Set-Cookie sid=7 returns as Cookie sid=7sectionnamevaluecheckstatusstatus200 OKokheaderSet-Cookiesid=7; Path=/parsedcookienamesidlabelcookievalue7labelcookiePath/pinnedheaderContent-Length0no bodyrequest linemethodGETparsedrequest linepath/cartparsedrequest lineversionHTTP/1.1parsedheaderHostshop.exampleexactheaderCookiesid=7sent backcheckSet-Cookiesid=7from responsecheckCookiesid=7from requestcheckPath/pinnedcheckmatchyessame labelchecksent body bytes0empty body

The Cookie header is present

The later request carries the cookie label in a Cookie header.

Cookie header present\text{Cookie header present}
Later requestThe later request and cookie match rows are recomputed from pinned bytes.Later request - Set-Cookie sid=7 returns as Cookie sid=7sectionnamevaluecheckstatusstatus200 OKokheaderSet-Cookiesid=7; Path=/parsedcookienamesidlabelcookievalue7labelcookiePath/pinnedheaderContent-Length0no bodyrequest linemethodGETparsedrequest linepath/cartparsedrequest lineversionHTTP/1.1parsedheaderHostshop.exampleexactheaderCookiesid=7sent backcheckSet-Cookiesid=7from responsecheckCookiesid=7from requestcheckPath/pinnedcheckmatchyessame labelchecksent body bytes0empty body

Summary

The later request sends the small label back with the request headers.

label returned\text{label returned}
Later requestThe later request and cookie match rows are recomputed from pinned bytes.Later request - Set-Cookie sid=7 returns as Cookie sid=7sectionnamevaluecheckstatusstatus200 OKokheaderSet-Cookiesid=7; Path=/parsedcookienamesidlabelcookievalue7labelcookiePath/pinnedheaderContent-Length0no bodyrequest linemethodGETparsedrequest linepath/cartparsedrequest lineversionHTTP/1.1parsedheaderHostshop.exampleexactheaderCookiesid=7sent backcheckSet-Cookiesid=7from responsecheckCookiesid=7from requestcheckPath/pinnedcheckmatchyessame labelchecksent body bytes0empty body