OK, once more without the huge log.

----- Forwarded by Roland Weber/Germany/IBM on 01.08.2003 12:54 -----


Roland Weber
01.08.2003 12:52

        To:     "Commons HttpClient Project" 
<[EMAIL PROTECTED]>
        cc: 
        From:   Roland Weber/Germany/[EMAIL PROTECTED]
        Subject:        Re: unable to find line starting with "HTTP" error

Hello,

from the log, I gather that you are sending a HEAD request.
The server then responds by sending the HTML document
directly, rather than an HTTP response without any document
at all.

I'd say this is a misbehaviour on the part of the server. That
you get the same error message as the one in bug 20703 is
mere coincidence. That error will be caused by any non-HTTP
response by a server.

You can try to use a GET request instead of HEAD, or work
with the server's administrator to make sure that HEAD
requests are dealt with properly.

regards,
  Roland






"[EMAIL PROTECTED]" <linea
01.08.2003 12:05
Please respond to "Commons HttpClient Project"
 
        To:     [EMAIL PROTECTED]
        cc: 
        Subject:        unable to find line starting with "HTTP" error


Hi,

In relation to the bug 20703, I have noticed that the workaround propose 
by Adrian Sutton works for the url 
http://www.msnbc.com/news/default.asp?newguid=2594c0a6623f464fb0ff25446bfa6cf3

mentioned in the bug report, but, at least as long as my experience is 
concerned, it doesn't seem to work for this url:
http://www.computerhistory.org/

I get the same error "unable to find line starting with "HTTP" as in the 
bug report..
Thanks for any suggestions..
Here is my error log:

org.apache.commons.httpclient.HttpRecoverableException: Error in parsing 
the status  line from the response: unable to find line starting with 
"HTTP"
         at 
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1892)
         at 
org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2536)
         at 
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1047)
         at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:638)
         at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:500)
         at CheckClient.performHttpRequest(CheckClient.java:356)
         at CheckClient.run(CheckClient.java:175)

0      INFO  [Thread-1] CheckClient -
----Checking URL(1): http://www.computerhistory.org/----

209    DEBUG [Thread-1] httpclient.HttpConnection - 
HttpConnection.setSoTimeout(10000)
209    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.open()
445    DEBUG [Thread-1] httpclient.HttpMethodBase - enter 
HttpMethodBase.execute(HttpState, HttpConnection)
445    DEBUG [Thread-1] httpclient.HttpMethodBase - Execute loop try 1
445    DEBUG [Thread-1] httpclient.HttpMethodBase - enter 
HttpMethodBase.processRequest(HttpState, HttpConnection)
446    DEBUG [Thread-1] httpclient.HttpMethodBase - Attempt number 1 to 
process request
446    DEBUG [Thread-1] httpclient.HttpMethodBase - enter 
HttpMethodBase.writeRequest(HttpState, HttpConnection)
446    DEBUG [Thread-1] httpclient.HttpMethodBase - enter 
HttpMethodBase.writeRequestLine(HttpState, HttpConnection)
446    DEBUG [Thread-1] httpclient.HttpMethodBase - enter 
HttpMethodBase.generateRequestLine(HttpConnection, String, String, 
String, String)
452    DEBUG [Thread-1] httpclient.wire - >> "HEAD / HTTP/1.1[\r][\n]"
452    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.print(String)
457    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.write(byte[])
457    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.write(byte[], int, int)
458    DEBUG [Thread-1] httpclient.HttpMethodBase - enter 
HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection)
458    DEBUG [Thread-1] httpclient.HttpMethodBase - enter 
HttpMethodBase.addRequestHeaders(HttpState, HttpConnection)
458    DEBUG [Thread-1] httpclient.HttpMethodBase - enter 
HttpMethodBase.addUserAgentRequestHeaders(HttpState, HttpConnection)
458    DEBUG [Thread-1] httpclient.HttpMethodBase - enter 
HttpMethodBase.addHostRequestHeader(HttpState, HttpConnection)
460    DEBUG [Thread-1] httpclient.HttpMethodBase - Request to add Host 
header ignored: header already added
460    DEBUG [Thread-1] httpclient.HttpMethodBase - enter 
HttpMethodBase.addCookieRequestHeader(HttpState, HttpConnection)
477    DEBUG [Thread-1] httpclient.HttpMethodBase - enter 
HttpMethodBase.addAuthorizationRequestHeader(HttpState, HttpConnection)
477    DEBUG [Thread-1] httpclient.HttpMethodBase - enter 
HttpMethodBase.addProxyAuthorizationRequestHeader(HttpState, 
HttpConnection)
477    DEBUG [Thread-1] httpclient.HttpMethodBase - enter 
HttpMethodBase.addProxyConnectionHeader(HttpState, HttpConnection)
477    DEBUG [Thread-1] httpclient.HttpMethodBase - enter 
HttpMethodBase.addContentLengthRequestHeader(HttpState, HttpConnection)
479    DEBUG [Thread-1] httpclient.wire - >> "Host: 
www.computerhistory.org[\r][\n]"
480    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.print(String)
480    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.write(byte[])
480    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.write(byte[], int, int)
483    DEBUG [Thread-1] httpclient.wire - >> "User-Agent: Mozilla/5.0 
(X11; U; Linux i686; it-IT; rv:1.3) Gecko/20030312[\r][\n]"
483    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.print(String)
483    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.write(byte[])
483    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.write(byte[], int, int)
485    DEBUG [Thread-1] httpclient.wire - >> "Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1[\r][\n]"
485    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.print(String)
485    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.write(byte[])
485    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.write(byte[], int, int)
486    DEBUG [Thread-1] httpclient.wire - >> "Accept-Language: 
en-us,en;q=0.5[\r][\n]"
486    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.print(String)
486    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.write(byte[])
486    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.write(byte[], int, int)
487    DEBUG [Thread-1] httpclient.wire - >> "Accept-Encoding: 
gzip,deflate,compress;q=0.9[\r][\n]"
487    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.print(String)
487    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.write(byte[])
487    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.write(byte[], int, int)
488    DEBUG [Thread-1] httpclient.wire - >> "Accept-Charset: 
ISO-8859-1,utf-8;q=0.7,*;q=0.7[\r][\n]"
488    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.print(String)
488    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.write(byte[])
488    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.write(byte[], int, int)
488    DEBUG [Thread-1] httpclient.wire - >> "Keep-Alive: 300[\r][\n]"
489    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.print(String)
489    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.write(byte[])
489    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.write(byte[], int, int)
489    DEBUG [Thread-1] httpclient.wire - >> "Connection: 
keep-alive[\r][\n]"
489    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.print(String)
489    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.write(byte[])
490    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.write(byte[], int, int)
490    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.writeLine()
490    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.write(byte[])
490    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.write(byte[], int, int)
490    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.flushRequestOutputStream()
491    DEBUG [Thread-1] httpclient.wire - >> "[\r][\n]"
491    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.flushRequestOutputStream()
491    DEBUG [Thread-1] httpclient.HttpMethodBase - enter 
HttpMethodBase.readResponse(HttpState, HttpConnection)
491    DEBUG [Thread-1] httpclient.HttpMethodBase - enter 
HttpMethodBase.readStatusLine(HttpState, HttpConnection)
492    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.readLine()
775    DEBUG [Thread-1] httpclient.wire - << "<html>[\r][\n]"
775    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.readLine()
776    DEBUG [Thread-1] httpclient.wire - << "<head>[\r][\n]"
776    DEBUG [Thread-1] httpclient.HttpConnection - enter 
HttpConnection.readLine()

[... cut out lots of stuff ...]



Reply via email to