What dispatcher to use (Re: Correct way to send http status code 206 -Partial content?)

What dispatcher to use (Re: Correct way to send http status code 206 -Partial content?)

am 04.01.2008 16:44:26 von Hemant Bist

------=_Part_605_29069178.1199461466898
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,
I want to stop using registry script(the status_line hack does not work with
the apache2/modperl that comes with Ubuntu-fiesty(, but works in
Ubuntu-dapper.).

Is there some other dispatcher module I can use, instead of Registry*.pm
modules. The bug related to 206 seems to be in RegistryCooker.pm so deriving
out of
it may not help me.

I would appreciate any pointers.

Thanx,
HB



On Dec 31, 2007 11:52 AM, Perrin Harkins wrote:

> On Dec 28, 2007 5:53 PM, Hemant Bist wrote:
> > What is the correct way to send http status code of 206 from from
> Modperl
> > Registry script [In modperl2/apache2]?
>
> Don't use a Registry script. Write a handler instead.
>
> - Perrin
>

------=_Part_605_29069178.1199461466898
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,
I want to stop using registry script(the status_line hack does not work with the apache2/modperl that comes with Ubuntu-fiesty(, but works in Ubuntu-dapper.).

Is there some other dispatcher module I can use, instead of Registry*.pm modules. The bug related to 206 seems to be in
RegistryCooker.pm so deriving out of
it may not help me.

I would appreciate any pointers.

Thanx,
HB



On Dec 31, 2007 11:52 AM, Perrin Harkins <
perrin@elem.com
> wrote:
On Dec 28, 2007 5:53 PM, Hemant Bist <
> wrote:
> What is the correct way to send http status code of 206 from from Modperl
> Registry script [In modperl2/apache2]?

Don't use a Registry script.  Write a handler instead.


- Perrin



------=_Part_605_29069178.1199461466898--

Re: What dispatcher to use (Re: Correct way to send http status code 206 -Partial content?)

am 04.01.2008 18:26:35 von Perrin Harkins

On Jan 4, 2008 10:44 AM, Hemant Bist wrote:
> Is there some other dispatcher module I can use, instead of Registry*.pm
> modules.

There are hundreds of them: CGI::Application, Mason, Catalyst, etc.
But why not write a handler? It's not difficult.

If you want a very minimal dispatcher, try Apache2::Dispatch.

- Perrin