title: Save cookies between two curl requests
body: <p>I know that using <code>cURL</code> I can see my received cookies / headers by using</p>
  
  <pre><code>curl --head www.google.com
  </code></pre>
  
  <p>And I know that I can add headers to my request using</p>
  
  <pre><code>curl --cookie "Key=Value" www.google.com
  </code></pre>
  
  <p>I am currently working on testing an issue which requires persistent cookies, and there can be a lot of them.</p>
  
  <blockquote>
    <p>How can I efficiently preserve cookies between two <code>cURL</code> requests?</p>
  </blockquote>
  
  <p>If possible using a temporary file for storage.</p>