Re: How does set status code in filter work

2007-12-11 Thread John Zhang
Thanks a lot, Joe! --- Joe Lewis [EMAIL PROTECTED] wrote: John Zhang wrote: Joe, Thanks for you rreply, but I do not quite understand Your filter should run before the content type is set. Could you elaberated on that? My filter is an output filter. The filter types are

Re: How does set status code in filter work

2007-12-10 Thread John Zhang
Joe, Thanks for you rreply, but I do not quite understand Your filter should run before the content type is set. Could you elaberated on that? My filter is an output filter. Also, if I issue a redirect in my (output) filter to (say /errors/HTTP_FORBIDDEN.html) and I am a filter for

Re: How does set status code in filter work

2007-12-10 Thread Joe Lewis
John Zhang wrote: Joe, Thanks for you rreply, but I do not quite understand Your filter should run before the content type is set. Could you elaberated on that? My filter is an output filter. The filter types are AP_FTYPE_ (followed by one of the following ) RESOURCE, CONTENT_SET,

Re: How does set status code in filter work

2007-12-08 Thread Joe Lewis
Your filter should run before the content type is set. Then, you can do the usual redirect to /errors/HTTP_FORBIDDEN.html or whatever document you should be returning. Yes, a filter should only be working on the through-put, so you should be handling that. Perhaps someone knows about the