Re: Peek at request from within Connection input filter

2010-09-14 Thread Nick Kew
On 14 Sep 2010, at 04:08, Jodi Bosa wrote: > Is there a way that I can "peek" at the request from within a Connection > filter? In other words, I need to examine the actual HTTP request in order > to affect something in another Connection filter. A constraint is that I > cannot modify this othe

ap_sub_req_lookup_file vs ap_sub_req_lookup_uri

2010-09-14 Thread Peter Janovsky
when using ap_sub_req_lookup_file to concatenate the contents of two files only the contents of the first file are delivered in the response. alternatively if i use ap_sub_lookup_uri to concatenate the contents of two web pages, the aggregated content is delivered in the response. what is the

Re: ap_sub_req_lookup_file vs ap_sub_req_lookup_uri

2010-09-14 Thread Ben Noordhuis
ap_sub_req_lookup_file() should work, it's what mod_include uses when you have on your page. You might want to take a look at its source.

Re: ap_sub_req_lookup_file vs ap_sub_req_lookup_uri

2010-09-14 Thread Peter Janovsky
ben,     thank you for pointing me in the right direction.  the only difference i see between my call(s) to ap_sub_req_lookup_file and the call(s) within mod_include is the inclusion of the filter parameter.  maybe my understanding of filters is incorrect.  are filters only used to modify resp

Re: Apache mods - possible to send request on?

2010-09-14 Thread Ray Morris
write a module that takes elements of the request and makes a request to another web server at an arbitrary URL? See the proxy modules for examples. -- Ray Morris [email protected] Strongbox - The next generation in site security: http://www.bettercgi.com/strongbox/ Throttlebox - Intel

Re: Apache mods - possible to send request on?

2010-09-14 Thread Nick Kew
On 14 Sep 2010, at 18:33, Paul Donaldson wrote: > Hello, > > I am completely new to Apache and Apache Modules, and so I'd be grateful if > someone could tell me whether it might be possible to write a module that > takes > elements of the request and makes a request to another web server at a

Re: ap_sub_req_lookup_file vs ap_sub_req_lookup_uri

2010-09-14 Thread Peter Janovsky
i notice mod_include is implemented as a filter.  is this the preferred way to implment ap_sub_req_lookup_file?  currently i implement ap_sub_req_lookup_file within a handler responsible for calling the appropriate files.  within the handler i only have access to the output_filters, input_filter