Automatic file download via wget
Posted: Mon Jun 26, 2017 4:54 pm
Hi,
this is my first time posting here.
I am trying to create a script to automatically download certain files via Unix wget (https://en.wikipedia.org/wiki/Wget) from the Church website. I have the url for the files and just accessing the url will download the file if I am authenticated.
However, when I try to access the url and I am not authenticated, two things happen: either I am redirected to the sign in portal (which is logical), or I get a page stating the link is unavailable along with an error code (I believe it's 21-0909). When I try accessing the link via wget I always obtain the html file with Unavailable. I have tried providing the --user and --password flags to wget with my ldsaccount credentials but I still receive the same Unavailable response.
Has anyone tried downloading content that requires authentication via wget? How can I get this done?
Thank you very much.
Jorge
this is my first time posting here.
I am trying to create a script to automatically download certain files via Unix wget (https://en.wikipedia.org/wiki/Wget) from the Church website. I have the url for the files and just accessing the url will download the file if I am authenticated.
However, when I try to access the url and I am not authenticated, two things happen: either I am redirected to the sign in portal (which is logical), or I get a page stating the link is unavailable along with an error code (I believe it's 21-0909). When I try accessing the link via wget I always obtain the html file with Unavailable. I have tried providing the --user and --password flags to wget with my ldsaccount credentials but I still receive the same Unavailable response.
Has anyone tried downloading content that requires authentication via wget? How can I get this done?
Thank you very much.
Jorge