title: Logging in and using cookies in pycurl
body: <p>I need to download a file that is on a password protected page.  To get to the page manually I first have to authenticate via an ordinary login page.  I want to use curl to fetch this page in script.<br>
  My script first logins. It appears to succeed--it returns a 200 from a PUT to /login.  However, the fetch of the desired page fails, with a 500.</p>
  
  <p>I am using a "cookie jar":</p>
  
  <pre><code>C.setopt(pycurl.COOKIEJAR, 'cookie.txt')
  </code></pre>
  
  <p>In verbose mode, I can see cookies being exchanged when I fetch the file I need.  Now my question: Is there more to using a COOKIEJAR?</p>