Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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:

How to handle Http request of Get or Post?

Comment on How to implement http handler in Perl
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

    pants

Re: How to implement http handler in Perl
by kcott (Abbot) on Sep 16, 2013 at 07:06 UTC
Re: How to implement http handler in Perl
by Generoso (Vicar) on Sep 16, 2013 at 18:25 UTC

    You may what to take a look at CGI module.

Re: How to implement http handler in Perl
by atcroft (Monsignor) 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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2014-08-20 13:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (113 votes), past polls