So what I'd like to do is within Apache/mod_perl (specifically a Mason component) is download a web page from a third party web server with some kind of HTTP client library (LWP?) and then add, filter or otherwise munge the HTML and then re-serve it as the output of the PerlHander (Mason component).
I guess it is a sort of HTTP server/client proxy thing.
My question is, (A) is there an existing module that is purpose built for embedding an HTTP client inside of mod_perl?, or, if not (B) what would be the best approach to do this? Just load LWP? Is there a lighterweight solution, giving the premium of memory space in an Apache child process?
Any ideas appreciated. -Andrew.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.