Hi.
I'm in the middle of a PerlHandler. To serve the current request
properly, I would need the result (content) from another HTTP request
which I would maself address to this same webserver.
I could do this the hard way by using LWP to just issue a new HTTP
request to localhost and get the content, before I go on with my current
request.
But I figure there must be an easier and more efficient way, no ?
Looking at the explanations for sub-requests, lookup_uri etc.., I get
the impression however that calling these, pretty much terminates the
current request, and replaces it by the one I'm calling.
Which is not what I want.
I want to continue processing the current request but using the response
from my other request.
Any ideas ?
Note (but I think this is irrelevant) : the secondary request I want to
issue is in fact destined to the Tomcat which sits behind this Apache
via a mod_jk re-director. It's like if, before answering the client, I
want to ask Tomcat a question like "if I were, hypothetically, to
request the following URL, what would you answer ?"
A bit like the Sphynx in the famous puzzle.