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?


You must log in to answer this question.

Browse other questions tagged .