On Tue, 2002-05-14 at 14:57, Xiaowei Jiang wrote:
> Can you post more details about the error. It seems to be working for me.
> That website is responding HTTP/1.0 to a HTTP/1.1 request, but that
> shouldn't cause this problem. Could you turn on the log and see what's
> transfered on the wire?

i'd be happy to, but i don't know what you mean by turn on the log. i
already posted the results of talking to the server manually. i patched
HttpMethodBase to print the status lines:

        String statusLine = conn.readLine();
        System.err.println("STATUS LINE: "+statusLine);

        while(statusLine != null && !statusLine.startsWith("HTTP/")) {
            statusLine = conn.readLine();
            System.err.println("STATUS LINE: "+statusLine);
        }
        if (statusLine == null) {
            // A null statusLine means the connection was lost before we
got a response.  Try again.
            throw new HttpRecoverableException("Error in parsing the
status line from the response: unable to find line starting with
\"HTTP/\"");
        }

and it reports this:
STATUS LINE: null
STATUS LINE: null
STATUS LINE: null
STATUS LINE: null

which seems to indicate that the problem is actually in HttpConnection.

if you can tell me how to turn on the log, i'll be happy to do so.
thanks.

- donald

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to