ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Al Le" <>
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 ''
which delegates the getInputStream() method to ''
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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message