httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aryeh Katz" <ar...@secured-services.com>
Subject Re: ap_run_sub_req problem
Date Wed, 06 Aug 2003 20:58:57 GMT

> The NULL argument for the filter is *ONLY* to be used for testing
> subrequests that are not actually run to the client.  E.g.
> mod_autoindex uses the NULL arg to consider what files might be
> served, and if they are, in fact, actually valid content files, or if
> they have been protected or otherwise cannot be handled.
> 
> You must pass the appropriate filter arg in order to pass the response
> through the filter stack back to the client.
> 
Thanks for the heads up.
Aryeh
> Look, instead, at mod_include.c or another module that actually serves
> the subrequest, for an example of the appropriate way to use this API.
> 
> Bill
> 
> At 02:37 PM 8/6/2003, Aryeh Katz wrote:
> >In certain circumstances, I need to do an internal redirect on the
> >client's request (without sending back a redirect to the client). I
> >tried using ap_sub_req_method_uri (specifying NULL for the filter),
> >and then ap_run_sub_req. I see that the content type of the new
> >request is correct (in my case, image/gif). However, when the request
> >is sent to the client, the content type is text/plain. Thus, the
> >reply to the client doesn't render properly. I suspect I am not
> >invoking ap_run_sub_req properly. Is there something I should know
> >about how to invoke run_sub_req? Thanks. Aryeh
> >
> >---
> >Aryeh Katz
> >Secured-Services Inc.
> 


---
Aryeh Katz
Secured-Services Inc.


Mime
View raw message