-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
[EMAIL PROTECTED] wrote:
> > >
> > Apache does it for you ;-) as you can see using a telnet.
> > It's not JServ's fault ...
> >
> > [root@r26m24 logs]# telnet localhost 80
> > Trying 127.0.0.1...
> > Connected to localhost.
> > Escape character is '^]'.
> > foo
> > <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> > <HTML><HEAD>
> > <TITLE>501 Method Not Implemented</TITLE>
> > </HEAD><BODY>
> > <H1>Method Not Implemented</H1>
> > foo to /index.html not supported.<P>
> > Invalid method in request foo<P>
> > <HR>
> > <ADDRESS>Apache/1.3.9 Server at r26m24.cybercable.tm.fr Port
> > 80</ADDRESS>
> > </BODY></HTML>
> > Connection closed by foreign host.
>
> Thanks for confirming Jean!!
>
> Anyone has any ideas on how to configure Apache to not
> prepend that line ?
>
> thanks
> Ramesh
>
I'm not sure this test proves anything one way or the other, because this is
Apache reporting a 501 error that never got as far as the servlet engine.
The error occurs because "foo" is not a valid HTTP command. Try a command
like:
GET / HTTP/1.0
or
GET /servlet/snoop HTTP/1.0
where "/servlet/snoop" is the pathname to your servlet, to see what you
get. On my Apache system, neither of the above documents has a DOCTYPE
header.
However, if I generate an invalid servlet request, such as
GET /servlet/foo HTTP/1.0
where "foo" is not a know servlet, I get an Apache error back instead of my
text, and the error starts with DOCTYPE. You need to look at the remainder
of the text of the message to see if it has your JavaScript text, or an
error message.
NOTE: When using telnet (at least under Linux), you will need to press
ENTER and then CTRL+J (linefeed) to cause the request to be processed.
Craig McClanahan
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]