Using wget to download a file from a password protected link
问题 I am trying to use wget to download a file from a http link that is password protected. I am using the following syntax: wget --http-user=user --http-password=xxxxxx http://...... Am I using the right syntax? Should user and password be surrounded by quotes or double quotes? 回答1: I did this a few years ago and luckily found the script in a backup I still have. I remember it was a two-stage process. The first step is to get and store the cookie(s): wget --keep-session-cookies --save-cookies