I'm trying to recursively download website which is normally available only when you login.
I have valid username and password, but the problem is that I need to login through web interface, so using
--user=user and --password=password doesn't help.
wget downloads only one webpage with text:
Sorry this page is not available, maybe you've forgotten to login?
Is it possible to download?
I can't use --user, --password even at the login page because there is no FTP/HTTP file retrieval login as mentioned in
--user=user --password=password Specify the username user and password password for both FTP and HTTP file retrieval.
Classic graphical login is there.
If I try to do this:
wget --save-cookies coookies --keep-session-cookies --post-data='j_username=usr&j_password=pwd' 'https://idp2.civ.cvut.cz/idp/Authn/UserPassword'. Using POST method to login and trying to save cookies, the coookies file is empty and the saved page is some error page.
The URL is
https://idp2.civ.cvut.cz/idp/Authn/UserPassword. Actually, when I want to log in, it redirects me to this page and when I successfully log in, it redirects me back to the page where I was before or some page where I wanted to be after logging in (example: