title: PHP Curl CookieJar file format
body: <p>As you guys know, you can send cookies with a Curl request. So here is a example:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  CURL *curl = curl_easy_init();
  if(curl) {
    curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
   
    /* get cookies from an existing file */
    curl_easy_setopt(curl, CURLOPT_COOKIEFILE, "/tmp/cookies.txt");
   
    ret = curl_easy_perform(curl);
   
    curl_easy_cleanup(curl);
  }
  ?&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>But what is the format of <code>/tmp/cookies.txt</code>?</p>
  
  <p>Thanks!</p>