title: How to use Phantomjs' cookie API?
body: <p>I am trying to use rasterize.js from the phantomjs' exmaple folder to capture a web page into PDF. The problem I am having is that the web page requires user log in. Then I saw there is a cookie option for Phantomjs. The web site is Django powered just in case it matters.</p>
  
  <p>So I logged into the site manfully, opened the firebug, and typed <code>document.cookie</code> in firebug. I got the cookie settings and put into my cookies.txt.</p>
  
  <pre><code>[http://localhost:7000]
  csrftoken: f3da886168fae33b840e7f6c93240dff
  sessionid: 27e90c3214b0ec94dadc739665724708
  django_language: en
  </code></pre>
  
  <p>Then I used the rasterize.js to create the pdf like below:</p>
  
  <pre><code>phantomjs --cookies-file=cookies.txt examples/rasterize.js http://localhost:7000/reports /tmp/report.pdf
  </code></pre>
  
  <p>But the result is still the log in page.</p>