hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <ROLWE...@de.ibm.com>
Subject Re: close stream
Date Tue, 05 Jun 2007 05:52:16 GMT
Hello Eugeny,

> Hello, could you please explain - if I get a stream from Get/PostMethod, 
do I
> need to explicitly close it  when I read all required data, or it is 
> when I call httpmethod.abort() ?

method.abort() will close the stream for you. Do NOT close the stream
before calling abort(), since that would read the remaining data.


View raw message