Like the summary says. Though it was a bug with my HTTP sender which returned a malformed HTTP response, Connection doesn't check the return value of inputStream.readLine() in receiveReply() before using indexOf on it. The current version of Connection in CVS (1.16) has this problem. Mark Baker -- distobj@acm.org
And what does JDK did in you case ? Throw an IOException ? or an EOFException ? Can you provide a testcase we can use for regression tests ?
This bug got obsoleted by the HTTP protocol implementation from GNU inetlib. This implementation does not use DataInputStream.readLine() at all. The merged version is commited th CVS and will be in GNU classpath 0.13.