I am trying to use Wget to download a page, but I cannot get past the login screen.
How do I send the username/password using post data on the login page and then download the actual page as an authenticated user?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Based on the manual page:
Make sure the
--post-dataparameter is properly percent-encoded (especially ampersands!) or the request will probably fail. Also make sure thatuserandpasswordare the correct keys; you can find out the correct keys by sleuthing the HTML of the login page (look into your browser’s “inspect element” feature and find thenameattribute on the username and password fields).