How to mirror password protected content

You can use wget to mirror pages that use cookies to authenticate visitors. That's usually the case when there is a login form on a site.

wget --keep-session-cookies --save-cookies cookies.txt --post-data 'login=foo&pass=bar' http://example.com/login/
wget --load-cookies cookies.txt --mirror --convert-links http://example.com

4 comments

  1. avatar
    wrote this comment on
    hi my name is shiraz and knw i am beginner to wordpress field. i want to knw how i will add customize page to my wordpress theme.
    1. avatar
      wrote this comment on
      Please try http://codex.wordpress.org/IRC
  2. avatar
    wrote this comment on
    i don't know the url and i forgot my password as well as my username pls help
    1. avatar
      wrote this comment on
      I don't know the url either.

Start a new thread

Cancel reply
Markdown. Syntax highlighting with <code lang="php"><?php echo "Hello, world!"; ?></code> etc.