Re: Udfordring

[email protected] ("Jonas B. Nielsen")
Newsgroups perl.copenhagen
Message-ID <[email protected]>
Hi Anton,

Standard Catalyst:

	$c->response->status($error_code);

According to: http://search.cpan.org/~flora/Catalyst-Runtime-5.80023/lib/Catalyst/Response.pm

It does not seem to be possible to set the status_line as of now. I will investigate, perhaps status, can be hacked/patched.

Looking at response 5 on the page you link to it seems to be able to get around the issue by doing one of the following (quoted):

1) Tomcat sending "NNN NNN" instead of "NNN " (likely to happen)
2) mod_jk fixing "NNN " to "NNN NNN" (likely to happen)
3) httpd either allowing "NNN " or alternatively also rewriting it to "NNN
NNN".

So I will try to:

1) make Catalyst send "NNN NNN"
2) make mod_perl2 propagate "NNN NNN" properly (I am not sure what it is doing currently

Thanks, 

I had read the link previously, but had skipped along to Rainer Jung's long thread (http://marc.info/?t=121128830700002&r=1&w=2). So this was exactly what I was hoping for - a second opinion.

jonasbn

On 11/05/2010, at 21.52, Anton Berezin wrote:

> On Tue, May 11, 2010 at 09:43:25PM +0200, Jonas B. Nielsen wrote:
> 
>> Jeg valgte af gammel vane at bruge Apache2 med mod_perl2 som engine. Dette
>> viste sig dog at give visse udfordringer. Apache2 understøtter nemlig ikke
>> egne fejlkoder alt som ikke er defineret i HTTP og alt ukendt bliver
>> oversat til 500.
> 
> How exactly are you setting the error code?
> 
> In particular, are you setting just the code, or also the status message?
> 
> There is a semi-open bug in apache's bugzilla which appears to bear
> relevance to this:
> 
>  https://issues.apache.org/bugzilla/show_bug.cgi?id=44995
> 
> \Anton.
> -- 
> Our society can survive even a large amount of irrational regulation.
> -- John McCarthy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.