> As James pointed out in my previous question regarding readLine, for POST
> requests I will need to read x number of bytes after the headers

FWIW, the "length of the body" in HTTP/1.1 is best spelled out in
section 4.4 of the spec, which is a good read.  Content-length is
indeed not always around :)

    http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.4

Your using of readLine for the body is relying on possibility #5,
where the connection/socket is closed (why it works when you hit the
Stop button).  Unfortunately, there's multiple other cases you'll have
to code for, as is spelled out there :)
-- 
James Manning <http://www.sublogic.com/james/>
GPG Key fingerprint = B913 2FBD 14A9 CE18 B2B7  9C8E A0BF B026 EEBB F6E4

_______________________________________________
Juglist mailing list
[EMAIL PROTECTED]
http://trijug.org/mailman/listinfo/juglist_trijug.org

Reply via email to