I'm guessing that using a Input or Output filter handler would be a better option ... combined with the standard Apache modules proxy and proxy_http to avoid reinventing the wheel.

It's certainly an option and likely one which involves less work on your part. You should essentially just be writing one simple(ish) filter handler (an Input Filter from your description of the problem) which you could test in isolation and then just the small matter of hooking it in early enough so that it acts before the proxy module gets to the request. I haven't tried this combination before but you should be able to rig a very simple test (eg. with a basic text-subtitution filter and a backend which just echoes the data) as proof of concept.

I know mod_perl2 is not the "sexiest" framework at the moment

It's always good to have one eye on the latest hot thing. 95% of them will come to nothing but the rest will form the next generation of de-facto standards. Nevertheless, it is a foolish monk indeed who forgets or disregards the established magic in pursuit of ephemeral fads. I recall being blown away by mod_perl when it was first shown to me and it is no less astonishing and powerful today. Good luck with your project.


In reply to Re: mod_perl best practices to increment XML payload by hippo
in thread mod_perl best practices to increment XML payload by glasswalk3r

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.