bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/26081] HttpURLConnection does not return body in error st


From: daney at gcc dot gnu dot org
Subject: [Bug classpath/26081] HttpURLConnection does not return body in error stream on most errors.
Date: 5 Feb 2006 06:43:39 -0000


------- Comment #1 from daney at gcc dot gnu dot org  2006-02-05 06:43 -------
Tightly related to this problem is the fact that exceptions are not properly
thrown for error responses.

I think for HttpURLConnection connect() should only throw exceptions if they
propagate up out of the socket.

getInputStream() should throw on 4?? and 5?? response codes.  In this case
getErrorStream() must contain the response body.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26081





reply via email to

[Prev in Thread] Current Thread [Next in Thread]