title: How to export to PDF a confluence page within a script
body: <p>I'd like to automatically export to PDF some confluence pages.</p>
  
  <p>It can be downloaded with URL : </p>
  
  <ul>
  <li><code>http://&lt;confluence server&gt;/confluence/spaces/flyingpdf/pdfpageexport.action?pageId=&lt;pageID&gt;</code></li>
  </ul>
  
  <p>When typing this URL, it works perfectly.</p>
  
  <p>But when I try to download with <code>wget</code>, an HTML page is downloaded instead ( asking for login and password). I tried to provide login/password with <code>--user</code> and <code>--password</code> wget options but it does not work.</p>
  
  <p>Do you have an idea to provide confluence credentials to <code>wget</code> command? Or another solution to download the PDF page?</p>