Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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' http://nanowrimo.org/en/sign_in
wget --load-cookies cookies.txt --keep-session-cookies -k -p -m -E -np --output-file=log.txt http://nanowrimo.org/en/messages

The login page is http://nanowrimo.org/en/sign_in and the page I want to archive is http://nanowrimo.org/en/messages (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

 
discard

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

Browse other questions tagged or ask your own question.