title: How to implement cookie handling on Android using OkHttp?
body: <p>Using OkHttp by Square <a href="https://github.com/square/okhttp" rel="noreferrer">https://github.com/square/okhttp</a>, how can I:</p>
  
  <ol>
  <li>Retrieve a cookie returned from the server</li>
  <li>Store the cookie for upcoming requests</li>
  <li>Use the stored cookie in subsequent requests</li>
  <li>Update the cookie returned by the subsequent request</li>
  </ol>
  
  <p>Ideally the cookie would be stored, resent and updated automatically with every request.</p>