> > I am trying to extend sh-httpd to handle POST and PUT. PUT is not an
issue
> > since all the parameters are present in the request.
> >
> > The problem I have with POST is that the paramters come as a line of
text
> > but no line terminator (at least from Netscape) and the connection is
not
> > closed so the read command a shell script does not terminate.
> >
> > Is there a way to read everything from stdin without having to have a
> > termination character? Something like getc() would be great.
>
> You'll have to check the RFC's for the exact server requirments when
> handling POST, but IIRC, you have to look at the content-length field, and
> read that many bytes from the input stream.  This is a good use for dd.

Oh...any chance you want to try implementing connection-keepalive while
you're at it?  This is something that would actually help a lot...M$ systems
don't honor the connection-close header, and wait 'til the TCP connection
resets before realizing the connection is finished.

Charles Steinkuehler
http://lrp.steinkuehler.net
http://c0wz.steinkuehler.net (lrp.c0wz.com mirror)


_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to