On Wed, 12 Sep 2001, Doug MacEachern wrote:

> On Thu, 13 Sep 2001, Stas Bekman wrote:
>
> > It indeed prints 'OK' via simple print "OK", 5.7.2 patch 12004 doesn't.
> > Looks like something related to STDIN problems we see with this version of
> > Perl. Of course in this case it's the tied STDOUT.
>
> could be.
>
> > send_httpd_header doesn't work for me with this perl.
>
> you keep saying that, please explain how send_http_header "doesn't work".
> all it does is set $r->content_type.  then apache sends the header on its
> own.  which based on your telnet output, it is working for you too.

ah, sorry, if I do:

    $r = shift;
    $r->send_http_header('text/plain');  # doesn't work!
    print("OK\n");

the script works, but the error log says:

[Thu Sep 13 12:00:12 2001] [error] [client 127.0.0.1] malformed header
from script. Bad header=OK:
/home/stas/apache.org/registry/Apache-Registry/t/response/simple.pl
[Thu Sep 13 12:00:12 2001] [warn] /cgi-test/simple.pl did not send an HTTP
header

which means that apache doesn't send the header.

_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to