Deleting only bucket in brigade

2012-06-22 Thread Jodi Bosa
What do you do in an input filter when you need to remove the only bucket in the bucket brigade? The following results in the filter not being called with any of the subsequent bucket brigades: apr_bucket_delete(b); The following hangs: b-length = 0; In other words, my input filter

Re: Deleting only bucket in brigade

2012-06-22 Thread Jodi Bosa
that unique in deleting an entire bucket?? On Fri, Jun 22, 2012 at 12:28 PM, Joe Lewis j...@joe-lewis.com wrote: On 6/22/12 9:52 AM, Jodi Bosa wrote: What do you do in an input filter when you need to remove the only bucket in the bucket brigade? The following results in the filter not being

remove content in Input Filter

2012-05-17 Thread Jodi Bosa
I am trying to write an Input Filter that removes specific content from a bucket brigade but failing in getting it to work: apr_bucket_read(aBucket, bucketStr, readLen, APR_BLOCK_READ); startPos = ; apr_bucket_split(aBucket, (size_t)startPos); tmpBucket = APR_BUCKET_NEXT(aBucket);

Re: mod_proxy retry

2011-11-03 Thread Jodi Bosa
On Tue, Nov 1, 2011 at 2:02 PM, Nick Kew n...@apache.org wrote: On Tue, 1 Nov 2011 13:09:57 -0400 Jodi Bosa jodib...@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

mod_proxy retry

2011-11-01 Thread Jodi Bosa
I'm looking for a filter that works with mod_proxy to resubmit a request to a server based on something being present in a response. In other words: - client browser directs request through proxy - mod_proxy sends request to server - proxy receives response, parses response, and then

log request before and after filters

2011-10-15 Thread Jodi Bosa
Is there a module that can record requests+responses before and after other filters have been invoked? thanks

proxying another protocol to http/https

2011-07-06 Thread Jodi Bosa
I would like to leverage mod_proxy and mod_proxy_http to proxy client requests (from another protocol). Assuming I have input output filters that handle the other protocol with the client, shouldn't I simply be able to: Handler { r-filename = apr_psprintf(r-pool, proxy:https://%s;,

creating reverse proxy workers dynamically

2011-07-06 Thread Jodi Bosa
Hi, It seems I may need to create HTTPS reverse proxy workers DYNAMICALLY - what is best way to do this? In other words, from manual I see config directive: ProxyPass /example http://backend.example.com connectiontimeout=5 timeout=30 However, I will have several origin servers that aren't

ap_hook_create_request vs ap_hook_insert_filter

2011-07-03 Thread Jodi Bosa
Hi, In Apache 2.2 - what is the purpose of ap_hook_insert_filter? It seems to get invoked after things like post_read, quick_handler, and others which is too late to filter any input. On the other hand, ap_hook_create_request does get invoked early enough. Is this simply hook misnaming - or

input filters called again after Handler returns

2011-06-29 Thread Jodi Bosa
I'm encountering a strange interaction between modules (including my own). When I track it down, it appears that input filters are called after the handler is finished which results in 2 bodies in the response. In other words, this is what appears to be happening: Input filters called

Filter to modify request headers

2011-01-25 Thread Jodi Bosa
Hi, What would be a good early hook to modify request headers that is _AFTER_ mod_ssl is finished decrypting request? When I do a ap_add_input_filter() from a ap_hook_insert_filter() seems to trigger really late (e.g. after quick_handler, post_read, etc...). Ideally, I would prefer working

Re: Location header in Handler

2010-11-28 Thread Jodi Bosa
my mistake - needed to return HTTP_MOVED_TEMPORARILY instead of OK (along with Location: header set) thanks all On Sun, Nov 28, 2010 at 3:49 PM, r...@tuxteam.de wrote: On Sat, Nov 27, 2010 at 09:45:43PM -0700, Chris Kukuchka wrote: On Nov 27, 2010, at 4:53 PM, Jodi Bosa jodib...@gmail.com

Location header in Handler

2010-11-27 Thread Jodi Bosa
I must be missing something. I cannot seem to set headers in a handler. I am using the Location header thinking that it's the most obvious (I don't really care about redirecting - just using Location for easy debugging). static int testHandler(request_rec *r) {

Peek at request from within Connection input filter

2010-09-13 Thread Jodi Bosa
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 other Connection filter. It seems I am in a somewhat