HTTP::Engine is great

For simple web-based services I usually just use Perl and CGI.pm. After having read a bit about HTTP::Engine I tried it for a simple project yesterday. Beside my own logic it only took a few line of code to have a stand alone HTTP server for my service.

My colleague needed it to be served from the same Apache server as the rest of his webapplication. Some tiny changes and my stand alone server was transformed into a plain CGI script. When we going to deploy the script I’m guessing we make some tiny changes and have it running as a mod_perl module.

Try it for you next project! Even if you usually just use CGI.pm.

1 Comment »

  1. Tatsuhiko Miyagawa said,

    September 11, 2009 @ 6:32 pm

    Peter, as one of the authors of HTTP::Engine, I suggest you to take a look at our new project PSGI/Plack
    http://bulknews.typepad.com/blog/2009/09/psgi-perl-wsgi.html
    http://groups.google.com/group/psgi-plack

    This is a project to break HTTP::Engine’s specification, utilities and web servers abstraction into three parts so adapting to existent frameworks can be much easier. The project started last week but we already got a dozens of server implementations and lots of frameworks, including Catalyst, are already supported.

RSS feed for comments on this post · TrackBack URI

Leave a Comment