title: What is the difference between cookie and cookiejar?
body: <p>Today I faced the term &quot;cookiejar&quot; (package <code>net/http/cookiejar</code>). I tried to gather some information regarding it, but got nothing intelligible came out. I know that <strong>cookie</strong> is key/value pairs that server sends to a client, eg: <code>Set-Cookie: foo=10</code>, browser stores it locally and then each subsequent request browser will send these cookies back to the server, eg: <code>Cookie: foo=10</code>.</p>
  <p>Ok, but what about <strong>cookiejar</strong>? What is it and how does it look like?</p>