title: using cookies with wget multilevel
body: <p>I want to download all website that I already have access to.</p>
  
  <p>I'm using wget:</p>
  
  <pre><code>### Log in to the server.  This can be done only once.                   
  wget --save-cookies cookies.txt \
   --keep-session-cookies \
   --post-data 'email=myemail&amp;password=mypass'\
   --delete-after \
   https://site/signin
  
  ### Now grab the page or pages we care about.
  wget --load-cookies cookies.txt \
   --keep-session-cookies \
   --cookies=on \
   --mirror -p --html-extension --convert-links \
   https://site/dashboard
  </code></pre>
  
  <p>With the script above I can download all pages in:</p>
  
  <p><code><a href="https://site/" rel="nofollow noreferrer">https://site/</a>*</code></p>
  
  <p>But when I down into another "sub-folder" like:</p>
  
  <p><code><a href="https://site/sub-folder/page.html" rel="nofollow noreferrer">https://site/sub-folder/page.html</a></code></p>
  
  <p>I <strong>can't</strong> download "page.html" because wget doesn't recognize my login and password or my cookies (or forget it, I don't know what is going on).</p>
  
  <p>So how can I download all multi-level content from this site?</p>