What is the difference between cookie and cookiejar?
问题 Today I faced with the term "cookiejar" (package net/http/cookiejar ). I tried to gather some information regarding it, but got nothing intelligible. I know that cookie is key/value pairs that server sends to a client, eg: Set-Cookie: foo=10 , browser store it locally and then each subsequent request browser will send these cookies back to the server, eg: Cookie: foo=10 . Ok, but what about cookiejar ? What is it and how it looks like? 回答1: As you described in your question, cookies are