ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Al Le" <Al...@gmx.de>
Subject Re: How to capture HTTP response with the status 500?
Date Tue, 17 Jan 2017 07:08:41 GMT
> So maybe it's because of the inbuilt JDK's implementation of 
> connection.getInputStream (it throws an exception if the status is 500).

I've debugged it and found out that
the connection object is of type 'sun.net.www.protocol.https.HttpsURLConnectionImpl'
which delegates the getInputStream() method to 'sun.net.www.protocol.http.HttpURLConnection'
which throws an exception if the status is greater than or equal to 400.

This makes me think that it will not be possible to get the full response without a custom
implementation of URLConnection.

AL

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message