-1

I'm trying to use wget to check if a login was succeed or failed. But instead I'm getting code 200 even when I input the wrong username or password:

wget --user=username --password=password -O myfile https://example.com

Any idea how to make this works? Thanks.

I tried:

wget --user=myusername --password=mypassword https://my.min-fx.tv/login -S --delete-after

ETA: the webpage is javascript

1 Answers1

-3

the option is --user and --ask-password wget will ask for the credentials. Below is an example.

wget --user=username --ask-password -O myfile https://example.com

check here : What is the correct wget command syntax for HTTPS with username and password?

General Grievance
  • 4,555
  • 31
  • 31
  • 45
Stevy
  • 76
  • 2
  • 4
  • The page is javascript rendered. Not possible to send request. And this is not an answer. The mininum is to copy the code. OP already knows how to send user/password, this is not the question – Gilles Quénot May 17 '23 at 01:03
  • where did you see a JS rendered here ? and i put the to where i found the right solution for him don't decrease the answer like the tag is for linux. – Stevy May 17 '23 at 01:08
  • Test to go to login page and disable javascript: in Firefox `about:config` : `javascript.enabled == False`, then refresh, try to send the forms. Nothing happens. Not possible via `wget` IMHO. – Gilles Quénot May 17 '23 at 01:10