tt
你把bytes=null;
resultString=null;
放那里了?

解决方案 »

  1.   

    1
    加上 method.releaseConnection() 
    对每一个HttpClient.executeMethod须有一个method.releaseConnection()与之匹配.2检查你的写log 文件的有没有什么问题
      

  2.   

    可能是jdk的bug 
    http://jakarta.apache.org/commons/httpclient/sslguide.html1 Known limitations and problems The problem appears to have been fixed in Sun's Java 1.4 SSL implementation
      

  3.   

    用 getResponseBodyAsStream  试一下
    用GetMethod类中getResponseBody, getResponseBodyAsStream 或 getResponseBodyAsString函数就可以取到应答包包体中的文档(如HTML页面)信息。这这三个函数中,getResponseBodyAsStream通常是最好的方法,主要是因为它可以避免在处理下载的文档之前缓存所有的下载的数据。