in reply to execute remote cgi from perl script, how?

If it wasn't for the ssl part, I would suggest using LWP::Simple

I haven't tried with ssl yet, I think LWP/LWP::UserAgent should point us to it.

Update:
Yes, that works. Try it out!

  • Comment on Re: execute remote cgi from perl script, how?

Replies are listed 'Best First'.
Re: Re: execute remote cgi from perl script, how?
by Fletch (Bishop) on Mar 26, 2004 at 02:27 UTC

    LWP::Simple sits on top of LWP::UserAgent, so whatever the later can talk the former can handle as well (and the later can handle SSL/TLS fine so long as Crypt::SSLeay is installed).

    $ perl -MLWP::Simple -e 'getprint("https://www.microsoft.com")'|head <!--TOOLBAR_EXEMPT--> + <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1 +" /> <TITLE>Microsoft Corporation</TITLE> <META http-equiv="PICS-Label" content="(PICS-1.1 &quot;http://www.rsac +.org/ratingsv01.html&quot; l gen true r (n 0 s 0 v 0 l 0))" /> <META NAME="KEYWORDS" CONTENT="products; headlines; downloads; news; W +eb site; what's new; solutions; services; software; contests; corpora +te news;" /> <META NAME="DESCRIPTION" CONTENT="The entry page to Microsoft's Web si +te. Find software, solutions, answers, support, and Microsoft news." +/> <META NAME="MS.LOCALE" CONTENT="EN-US" /> <META NAME="CATEGORY" CONTENT="home page" />

    Update: Sorry, Crypt:: not Net::SSLeay; corrected above.