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 Mon, 16 Jan 2017 19:50:26 GMT
Jan, thank you for taking time!

Am 16.01.2017 um 08:27 schrieb Jan Matèrne (jhm):
> Otherwise the return of the url.openConnection().getInputStream() is copied to local
> So a response for a 500-error should be captured to file.
> _But_ that file is deleted if an error (non-success, e.g. catched IOException) occured.
> (

IIRC, it didn't get to downloading the file. Instead, it stopped at 
"connection.getInputStream()" ( I 
remember three messages in the ant log stating "Error opening connection".

So maybe it's because of the inbuilt JDK's implementation of 
connection.getInputStream (it throws an exception if the status is 500).


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

View raw message