httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r.@tuxteam.de
Subject using mod_proxy for subrequests
Date Wed, 04 May 2011 09:34:46 GMT
Hello list,

as the subject line says, I'm trying to run a subrequest through
mod_proxy and need to post-process the subrequests response data.
Looking at older posts on this list it seems as if the only way to
accomplish this is:

(1)  create a subrequest with ap_sub_req_lookup_uri(...)

(2) modify parts of the created subrequest (filename, handler, proxyreq
etc.)

(3) Install a filter that captures the response data

(4) run that subrequest

Now, (1) seems unelegant since it does need a valid URI which has
nothing to do with the final proxy request. Hence the value of the
subrequest's status has no meaning -- but isn't this exactly the purpose
of subrequests? To quote Nick Kew '....to run a fast partial request, to
gather information: what would happen if we ran thos request?'
Is there really no way to create a subrequest directly aiming at
mod_proxy.
It would be utterly nice to be able to access a (proxied) subrequests
metadata (content-type, etag etc.) before running the filter.

Any ideas? Mabe a nice API extension for Apache or mod_proxy?

TIA Ralf Mattes


Mime
View raw message