M
M
mesoy252019-06-03 09:11:38
Command line
mesoy25, 2019-06-03 09:11:38

How to log in to a website using Wget?

Hello. Why, when using cookies in Wget for authorization on the site, authorization only works for the first page? The site is downloading, but I'm only logged in to the site/index.php. Tried in different ways:

wget -x --load-cookies C:\cookies.txt "сайт" --page-requisites -r -l 10 "сайт"

wget -x --load-cookies C:\cookies.txt --page-requisites -r -l 10 "сайт"

wget --load-cookies C:\cookies.txt --page-requisites -r -l 10 "сайт"

wget -x --load-cookies C:\cookies.txt --mirror --convert-links --page-requisites -r -l 10 "сайт"

and many more like...
What's wrong? Why only login to /index.php? To receive cookies, I used the extension for Google Chrome "cookies.txt".

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2019-06-03
@shambler81

wget --user user --password pass example.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question