Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

execute remote cgi from perl script, how?

by boat73 (Scribe)
on Mar 26, 2004 at 00:49 UTC ( [id://339918]=perlquestion: print w/replies, xml ) Need Help??

boat73 has asked for the wisdom of the Perl Monks concerning the following question:

Can anyone suggest some simple methods of calling a remote cgi script from within a perl script. I need only pass it a single scaler arg. I will also be using ssl on the website. Thanks in advance, boat73
  • Comment on execute remote cgi from perl script, how?

Replies are listed 'Best First'.
Re: execute remote cgi from perl script, how?
by Happy-the-monk (Canon) on Mar 26, 2004 at 00:54 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.

Re: execute remote cgi from perl script, how?
by DamnDirtyApe (Curate) on Mar 26, 2004 at 02:31 UTC

    boat73, I'm going to suggest you take a look at the following articles; knowing how to ask a question effectively is the best way to have it answered in a meaningful way.


    _______________
    DamnDirtyApe
    Those who know that they are profound strive for clarity. Those who
    would like to seem profound to the crowd strive for obscurity.
                --Friedrich Nietzsche

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-04-25 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found