hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ortwin Gl├╝ck <ortwin.glu...@nose.ch>
Subject Re: File Upload Problem
Date Thu, 10 Feb 2005 09:20:00 GMT


Anuj Jain wrote:
          try {
>             client.executeMethod(filePost);
>             String response = filePost.getResponseBodyAsString(); 
>             }
>            catch (IOException e) {
>                 System.err.println("Failed to download file.");
>                 e.printStackTrace();
>            }
>            filePost.releaseConnection();
>            return 0;

You should also put filePost.releaseConnection(); into a finally clause.

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


Mime
View raw message