perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Perrin Harkins <per...@elem.com>
Subject Re: who's putting that <pre> tag in the output...?
Date Mon, 23 Mar 2009 11:35:09 GMT
On Mon, Mar 23, 2009 at 7:14 AM, Iosif Fettich <ifettich@netsoft.ro> wrote:
> I've ommited printing headers explicitely :(

HTTP won't work without headers.

> Have to see when and how I should do this; simply inserting a
>
> $r->content_type( 'text/html' );
>
> before my
>
> $r->print( $content );
>
> seems to be a NOOP..

Nope, it's not a NOOP.  Maybe you're setting it too late.

>> Everything you've shown so far could be done more efficiently by a couple
>> of lines of mod_rewrite.
>
> I'll re-read mod_rewrite then ;)
>
> I'm just not aware yet that I could check the outcome of a subrequest and
> put some proxied response in place if the subrequest is unsuccessful. Isn't
> mod-rewrite just a _request_ rewrite ?

It can do just about anything:
http://httpd.apache.org/docs/1.3/misc/rewriteguide.html

- Perrin

Mime
View raw message