Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: "Include" parameters from website

by 1nickt (Canon)
on Mar 15, 2021 at 18:19 UTC ( [id://11129700]=note: print w/replies, xml ) Need Help??


in reply to SOLVED!! "Include" parameters from website

Hi,

I need to get similar info but from a secure area in a website that I will login to

Use an HTTP client to make the request and gather the config, then use it in the connection.

See the core module HTTP::Tiny, or for more complex use cases, LWP::UserAgent.

Hope this helps!


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^2: "Include" parameters from website
by Polyglot (Chaplain) on Mar 16, 2021 at 02:21 UTC

    Perhaps you have something else in mind and/or I'm misunderstanding here, but if you are accessing "secure" information via plain HTTP, isn't that about the equivalent of an API that would render the whole security assumption moot?

    Blessings,

    ~Polyglot~

      You are correct of course Polyglot, which is why I am looking at using WWW::Mechanize now to login to the website and execute the webpages as if I was connected to the site from a browser instead. I am struggling with the process of using session IDs to identify the user login that is required to access the pages though but I will figure it out. Thanks, Gerry

        Your post references a PBX, have you checked https://metacpan.org to see if a module exists to interface with the system in question? Failing that does the page you're having problems with depend on JavaScript being available?

Re^2: "Include" parameters from website
by bajangerry (Sexton) on Mar 15, 2021 at 18:41 UTC
    Hi 1nickt, That is interesting, that is a different way to solving the problem than I was thinking about, using this method I assume I can actually use Perl to open a webpage that has the code to update the mysql database within the page and simply pass the data string to the webpage as opposed to having Perl access the database directly. I will give this a try, thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11129700]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-20 03:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found