title: wkhtmltopdf and forms based authentication
body: <p>I have an application that uses forms based authentication.  I'm trying to take a copy of a page within the application and save it to PDF using wkhtmltopdf.  </p>
  
  <p>wkhtmltopdf is installed and works fine.  I can call it successfully from within the application to generate a PDF of another website without authentication (i.e. bbc.co.uk).</p>
  
  <p>I cannot get it to pass username/password to the application in order to generate a copy of the desired page.  Instead I get a PDF of the signon screen.</p>
  
  <p>Both client and server are Windows (7 and 2008 respectively).  I'm using the command:</p>
  
  <p>wkhtmltopdf.exe --post userid=xxx --post pwd=yyy --ignore-load-errors <a href="http://url.com/blah/blah/" rel="nofollow">http://url.com/blah/blah/</a> test.pdf</p>
  
  <p>Where xxx is my username and yyy is my password.  I've been through the source of the logon page and the ids of the form fields are userid and pwd so I believe I have the post parameters in command line correct.</p>
  
  <p>After thoroughly googling I can see mentions to a --cookie-jar parameter, but haven't managed to work out its usage, or even if it'll help.</p>
  
  <p>thanks</p>
  
  <p>Duncan</p>