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

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.

Replies are listed 'Best First'.
Re: Re: Re: execute remote cgi from perl script, how?
by Happy-the-monk (Canon) on Mar 26, 2004 at 02:32 UTC