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?
, curl CURL. , cookie, curl -b CURL API.
curl
-b
HTTP- CURL.
, HTML JS cookie. , CURL.
, , -, . - . "" , BlueSocket, ; -. , , , !
Php CURL . , .
Source: https://habr.com/ru/post/1759613/More articles:Sort JSON NSDictionary for UITableView - jsonto cancel UIActionSheet when an application exits in the background on iOS4 - iphoneSplit a line containing a continuous paragraph into a left-aligned column of lines - stringWeb Kit, Css Clip forcing scrollbar - htmlКакова цель этих внутренних функций? - javascriptASP.NET Membership - Design for tracking additional information - web-applicationsEmail Building MVC - c #Невозможно использовать rake db: выполнить миграцию из-за таймаута sqlite3_busy - ruby-on-rails-3Display image on top of another image when rollover - javascriptГенетическое программирование с помощью набора Мандельброта - artificial-intelligenceAll Articles