On Thu, 13 Sep 2001, Stas Bekman wrote:

> On Wed, 12 Sep 2001, Doug MacEachern wrote:
>
> > On Thu, 13 Sep 2001, Stas Bekman wrote:
> >
> > > +sub handler {
> > > +    $r = shift;
> > > +    $r->send_http_header('text/plain');  # doesn't work!
> > > +    $r->print("Content-type: text/plain\r\n\r\n");
> > > +    print("OK\n");
> >
> > what doesn't work exactly?  what is the output when you telnet and make a
> > GET request for this handler?
>
> Nada.
>
> I expect print OK to work, but I don't see anything.  send_http_header
> doesn't work too.

Here is the output from telnet:

%telnet localhost 8529
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /cgi-test/simple.pl HTTP1.0

HTTP/1.1 200 OK
Date: Wed, 12 Sep 2001 20:09:31 GMT
Server: Apache/2.0.26-dev (Unix) mod_ssl/3.0a0 OpenSSL/0.9.6 DAV/2
mod_perl/1.99_01-dev Perl/v5.7.2
Content-Length: 0
Connection: close
Content-Type: text/plain

Connection closed by foreign host.


_____________________________________________________________________
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