Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 59423 invoked from network); 23 Mar 2009 12:03:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Mar 2009 12:03:01 -0000 Received: (qmail 94824 invoked by uid 500); 23 Mar 2009 12:02:59 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 94782 invoked by uid 500); 23 Mar 2009 12:02:59 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 94774 invoked by uid 99); 23 Mar 2009 12:02:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Mar 2009 12:02:59 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Mar 2009 12:02:51 +0000 Received: from localhost (localhost [127.0.0.1]) by tor.combios.es (Postfix) with ESMTP id 17C6D22607A for ; Mon, 23 Mar 2009 13:01:29 +0100 (CET) Received: from tor.combios.es ([127.0.0.1]) by localhost (tor.combios.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xSydTnMaeJl2 for ; Mon, 23 Mar 2009 13:01:29 +0100 (CET) Received: from [192.168.245.129] (p549EA90D.dip0.t-ipconnect.de [84.158.169.13]) by tor.combios.es (Postfix) with ESMTPA id C6616226075 for ; Mon, 23 Mar 2009 13:01:28 +0100 (CET) Message-ID: <49C7791E.5030607@ice-sa.com> Date: Mon, 23 Mar 2009 12:57:18 +0100 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: aw@ice-sa.com User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: modperl@perl.apache.org Subject: Re: who's putting that
 tag in the output...?
References: <4e2034060903061031y51bafd58yd5d796264b2d5595@mail.gmail.com>
	 
	 <66887a3d0903230353k37ac67e4n38f1e93e8c7978f4@mail.gmail.com>
	 
 <66887a3d0903230435m10225a7fra3cc948368a72d01@mail.gmail.com>
In-Reply-To: <66887a3d0903230435m10225a7fra3cc948368a72d01@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Checked: Checked by ClamAV on apache.org

Perrin Harkins wrote:
> On Mon, Mar 23, 2009 at 7:14 AM, Iosif Fettich  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.
> 
You may also want to have a look at this previous thread :
http://marc.info/?l=apache-modperl&m=123072345912551&w=2

In the second or third message, there is a paragraph by Rainer Jung 
which explains why setting the Content-Type may sometimes appear as not 
working.  There is also later on a solution.

This does not mean that what Perrin says above is wrong.
Apparently, with the Content-Type header, timing is really of the essence.