How to download a secure web page

I want to programmatically download a web page that requires a login to view. Is there any reasonable way to do this? Studying HTTP headers, etc., I can see the username / password transmitted as POST data, but requesting a page with this information is not enough. I think cookies are also involved, and it looks like they contain some kind of encrypted authorization data.

Is there any way to fake this? The language is not very important here, but something like Perl, which can be run on Linux with relative ease, would be nice. Or maybe a command line script could be a script?

+3
source share
2 answers

, curl CURL. , cookie, curl -b CURL API.

HTTP- CURL.

, HTML JS cookie. , CURL.

, , -, . - . "" , BlueSocket, ; -. , , , !

+1

Php CURL . , .

+1

Source: https://habr.com/ru/post/1759613/


All Articles