Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been trying to archive my forum private messages using Wget (its a custom forum server, so i cant just click "export all messages" like you can in phpbb). As a result, they're stuck behind a login page.

This is what I've tried (with username and password taken out for obvious reasons):

wget --save-cookies cookies.txt --keep-session-cookies --post-data 'user_session_name=foo&user_session_password=bar'
wget --load-cookies cookies.txt --keep-session-cookies -k -p -m -E -np --output-file=log.txt

The login page is and the page I want to archive is (you can't go to this page because you need to be logged in).

It doesn't save the actual page I want, it just redirects to the login page. Am I doing something wrong here?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.