I am faced with a peculiar problem.
For downloading a html-page with wget I normally use a command like this:
That works well but when it comes to password-protected pages I run into difficulties.
I looked a bit around and found a certain syntax that should work. Here´s an example:
wget --user=vivek --ask-password http://192.168.1.10/docs/foo.pdf
(taken from: https://www.cyberciti.biz/faq/wget-command-with-username-password/ )
Yet in my case it doesn´t.
I wanted to save a .html-page from itsfoss.community which is private.
So I tried the command
wget --user=Rosika --ask-password 'https://itsfoss.community/t/[...]'
I was asked for my PW and entered it.
Yet I got this response:
Password for user ‘Rosika’: --2020-08-11 18:42:20-- https://itsfoss.community/t/[...] Resolving itsfoss.community (itsfoss.community)... 126.96.36.199 Connecting to itsfoss.community (itsfoss.community)|188.8.131.52|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2020-08-11 18:42:25 ERROR 404: Not Found.
Theoretically this command should work but it doesn´t.
Can anybody help?
Many thanks in advance.