> -----Original Message-----
> From: Jeff Beard [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 14, 2000 11:42 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: Header Sending Bug?
>
>
> I don't see a problem with this but maybe I'm missing your point. :)
well, if his point was that printing to STDERR (not STDOUT) caused
$r->send_http_headers to be called prematurely, I guess that would be a
problem...
unfortunately, I can't reproduce the results David reported using 1.23_01
(current cvs)
here was my test script, run under Regustry with PerlSendHeaders On
#!/usr/bin/perl
print STDERR "testing\n";
print "Content-type: text/html\n\n";
print "hi";
no headers, just "hi" in the browser and "testing" in the error_log... of
course, with PerlSendHeaders Off, Netscape gets a download screen (expected)
is this what you meant?
--Geoff
>
> If PerlSendHeader is set to "On", you don't have to send a
> header in your
> program. If you want to retain control of when the header is
> sent, set
> PerlSendHeader to "Off" and do it yourself.
>
> --Jeff
>
>
>
> At 12:53 AM 5/14/00, David E. Weekly wrote:
> >Hello all. I've looked in various mod_perl FAQs but haven't seen the
> >answer to what seems to be a (minor) bug in Apache::Registry.
> >
> >It seems that when PerlSendHeader is On if I haven't yet done a
> >print "Content-type: text/html\n\n"
> >
> >but I want to print a comment into the weblog by doing a
> >print STDERR "I got value $value.\n"
> >
> >It seem Apache::Registry will go ahead and print out the default
> >headers, causing my "Content-type: text/html" to show up ad verbatim
> >on the rendered page: not the desired effect!
> >
> >While I understand that it would make sense for Apache::Registry
> >to print out the headers if I start spewing out text to STDOUT,
> >it is, IMHO, not a good behavior for it to do the same when I write
> >to STDERR.
> >
> >Has this been reported like a kajillion times (in which case someone
> >will politely reach their virtual hand out and smack me upside the
> >head) or is this a sufficiently out-of-the-way sort of error that
> >people haven't reported it yet? At any rate, I'd just be tickled
> >pink if someone fixed it.
> >
> > Yours,
> > David Weekly
>
>
>
> Jeff Beard
> _____________________________________________
> Web: www.cyberxape.com
> Email: jeff at cyberxape.com
> Location: Boulder, CO, USA
>
>
>