How can I access an intranet webpage with Perl?

I am writing a Perl script to access an intranet page with authentication. Is there any Perl module to access the intranet webpage?

+3
source share
3 answers

In general, a way to handle this is to use WWW :: Mechanize. To get started, install WWW :: Mechanize :: Shell and run:

perl -e 'use WWW::Mechanize::Shell; shell'

then you can use "help", "get", "open", "fillout" and other cool commands.

(, , , - ) "script" - perl, , . / - .pl .

+9
+6

- , .

How you handle authentication depends on how authentication is performed. WWW: Mechanize will probably go through most things, but I have the grunting memory of some proprietary Microsoft system that allows Internet Explorer to use user domain authentication details, if you use this, then you can find Win32 :: IE :: Mechanize will handle it for you.

+4
source

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


All Articles