You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2003/05/05 06:53:59 UTC
DO NOT REPLY [Bug 19635] New: -
GET an image without any Headers causes HttpRecoverableException
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19635>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19635
GET an image without any Headers causes HttpRecoverableException
Summary: GET an image without any Headers causes
HttpRecoverableException
Product: Commons
Version: 2.0 Alpha 3
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: Normal
Priority: Other
Component: HttpClient
AssignedTo: commons-httpclient-dev@jakarta.apache.org
ReportedBy: keith.wong@objectvalley.com
I have encountered a case that getting an image. It has no any header and the
whole content of the socket is the content of the image. It gets the following
stack trace:
WARNING: Recoverable exception caught when reading response
org.apache.commons.httpclient.HttpRecoverableException:
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:1733)
at org.apache.commons.httpclient.HttpMethodBase.processRequest
(HttpMethodBase.java:2326)
at org.apache.commons.httpclient.HttpMethodBase.execute
(HttpMethodBase.java:960)
at org.apache.commons.httpclient.HttpClient.executeMethod
(HttpClient.java:578)
at org.apache.commons.httpclient.HttpClient.executeMethod
(HttpClient.java:477)
at HttpClient.main(HttpClient.java:17)
Here is the example url:
http://hk.yimg.com//hk/providers/mingpao/20030403/30323plee-s.jpg
I've checked with a browser and a testing program to prove that the content of
the socket is exactly the content of the image.