Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

How to implement http handler in Perl

by anaconda_wly (Scribe)
on Sep 16, 2013 at 06:41 UTC ( #1054233=perlquestion: print w/replies, xml ) Need Help??

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

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: How to implement http handler in Perl
by kcott (Bishop) on Sep 16, 2013 at 07:06 UTC
Re: How to implement http handler in Perl
by atcroft (Abbot) on Sep 16, 2013 at 22:55 UTC
    anaconda_wly, are you trying to make a GET or POST request from your script to something else (in which case you might start with LWP, specifically LWP::Simple or LWP::UserAgent and a look through lwpcook and lwptut), or are you wanting your script to receive GET/POST requests from another source (in which case something like AnyEvent::HTTP, HTTP::Lite, HTTP::Daemon, HTTP::Server::Simple, Net::Server::HTTP, or Net::HTTP::Tiny, among others, might fit your requirement)? (There are also a number of other modules that may be useful-just search for "HTTP" on CPAN.) Unfortunately, we need more information to be able to provide more guidance along your path.

    Generoso's response above reminded me that you may want to be handling them as part of a CGI, in which case the CGI module, or a look at Web Client Programming in Perl might be of help.

    Hope that helps.

    Update: 2013-09-16 Added note referring to another user's post on the same thread.

Re: How to implement http handler in Perl (pantrs)
by Anonymous Monk on Sep 16, 2013 at 06:45 UTC

    How to handle Http request of Get or Post


Re: How to implement http handler in Perl
by Generoso (Prior) on Sep 16, 2013 at 18:25 UTC

    You may what to take a look at CGI module.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2022-05-26 02:34 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (92 votes). Check out past polls.