Cookie authenticationn

I am trying to wget to retrieve a file from an ubuntu server. I believe I need a cookie authentication, but am am having trouble.

I am reading the maual and it is not making sense. I have also tried

 wget http://..... --username=... --password=... 

Thank you.

We cannot tell you anything about what authentication the site uses without seeing the site. That kind of web authentication is usually hand-rolled and can be quite complicated, involving cookies, javascript, hidden forms, and more. Any solution to it would be equally hand-rolled.

In the end it often means responding to the site the same way a web browser does -- seeing the main page, accepting cookies from it, submitting all the hidden forms a web browser would, etc, etc.

I was able to get it to work, thank you.

1 Like