Hello,

No you need not to specify the Content-Lenght in the request (cf RFC). Otherwise the 
client would need to know the size of the page he wants to retrieve ;-)

I have also tried with a Tomcat3.2.3 to do: 
        telnet 127.0.0.1 8080
        GET /test/index.html HTTP/1.0 (return)
        (return)
It is working : a CRLF (return) for finishing the GET line, another CRLF for finishing 
the HTTP request,and I have the expected answer.
So if it it working for you, it is probably that Tomcat gets your first line GET .... 
CRLF, ignore you Content-Lenght=2583, but also gets the CRLF of this 2nd line and 
considers that the request is finished, so it serves you the page.

Xavier Marjou

> -----Original Message-----
> From: Judith NATAF [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, September 14, 2001 3:56 PM
> To:   Tomcat (E-mail)
> Subject:      Content-Length
> 
> I send the following request to Tomcat's web server
> 
> GET /index.html HTTP/1.0 
> Content-Length=2583
> 
> If I specifie the CONTENT-LENGTH I get the index.html file.
> But, if I dont't specifie the CONTENT-LENGTH, I have a 404 error.
> 
> How comes that Tomcat Web server is not able to determine the length ?
> Do I really need to specifie the length in my request ?
> Thank's for your help.
> 
> ------------------------------------
> Judith Nataf - TELISMA
> Product Development Engineer
> 
> Tel: (0)2 96 05 59 24
> email : <mailto:[EMAIL PROTECTED]>
> web : <http://www.telisma.com>
> ------------------------------------
>  

Reply via email to