Hi guys, How do we handle errors in an output filter if the headers have already been sent?
Suppose: static apr_status myfilter( ... ) { if( !ctx ) { .... } if( ctx->state++ == 0 ) { .... } else { /* headers already sent??? */ ... ERROR DETECTED HERE!!! } return ap_pass_brigade( f->next, bb ); } What will happen if I 'return APR_EGENERAL' when the error is detected? What is the right thing to do? Also, how does http_header filter calculate 'content-length'. Aren't output filters feeding data to the client chunks by chunks? So how does it know how big it will be? Tahiry _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com