[En-Nut-Discussion] httpd question: conent-length of response

Ole Reinhardt ole.reinhardt at kernelconcepts.de
Mon Aug 1 17:24:26 CEST 2005


Hi all,

I'm implementing a ssi mechanism for the Ethernut Webserver, but I'm
running into a little problem.

I need to send the http header befor sending any data. But when I have
ssi pages I don't know the overall content length of the html page I'm
sending. So I decided to pass conent length -1 to NutHttpSendHeaderBot
as it should ignore this field.

So far so good. Everything seems to work. But only sometimes...
Sometimes it seems that the browser does not get the whole content I'm
sending.

But why? I'm wondering why CGIs can be used with a content length set to
-1? Why not static code?

Any Ideas how to solve the problem? I don't like to first parse the
sides, account the allover data, send the header and then do the parsing
again to send the data as well...

Best regards,

Ole Reinhardt

-- 
kernel concepts    Tel: +49-271-771091-14
Dreisbachstr. 24   Fax: +49-271-771091-19
D-57250 Netphen    E+ : +49-177-7420433
--





More information about the En-Nut-Discussion mailing list