httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jodi Bosa <jodib...@gmail.com>
Subject Re: mod_proxy retry
Date Fri, 04 Nov 2011 00:18:15 GMT
thanks but unfortunately it seems mod_include #include virtual does not
appear to support requests to external servers (must not contain a scheme
or hostname - only path and query string).


Regardless, I also tried ap_sub_req_lookup_uri():


   static apr_status_t x_response_filter(ap_filter_t *f, apr_bucket_brigade
*bb)
   {
        request_rec                                             *r, *subr;
        int
status;

        request_rec *subr = ap_sub_req_lookup_uri("http://www.apache.org",
r, f->next);
        status = ap_run_sub_req(subr);
        ap_destroy_sub_req(subr);
   }


which seemed to succeed to make_sub_request() but later on mod_proxy's
proxy_handler() failed because of r->proxyreq was NULL.

Should I carry on this path or is there some other functionality in
mod_proxy such that I can initiate a request to an *EXTERNAL* server from
within a response filter?

many thanks



On Tue, Nov 1, 2011 at 2:02 PM, Nick Kew <niq@apache.org> wrote:

> On Tue, 1 Nov 2011 13:09:57 -0400
> Jodi Bosa <jodibosa@gmail.com> wrote:
>
> > I couldn't spot anything useful in mod_proxy config, and figured should
> be
> > simple enough in an output filter - but how to trigger the resubmit of
> the
> > request?
>
> If the response is HTML, mod_includes will parse it.  It'll also submit
> another request via #include virtual.
>
>
> --
> Nick Kew
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message