How to capture HTTP response with the status 500?

Al Le <[email protected]>
Newsgroups gmane.comp.jakarta.ant.user
Message-ID <[email protected]>
Hello,

the GET task allows to save the response of a HTTP server. One URL I try 
to get returns the HTTP status 500 (internal server error). Along with 
the status, some data is returned in the response (I verified this with 
cUrl) which provides some details about the error. However this data is 
not captured by ant.

Is it possible (and how) to capture the contents of a server response 
with the status 500?

After the data has been captured (saved to file), the execution of the 
build should proceed as usual, i.e. go further of fail according to 
"ignoreerrors".

Thanks!
AL
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.