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: Connection gets closed on GET operation
Date Thu, 09 Feb 2006 06:31:52 GMT
Hello Keith,

>              }
>              finally {
>                  getMethod.releaseConnection();
>              }
>          }
> 
>          // Transaction to prepare for content upload
>          System.out.println("contentStream 3: " + contentStream);
>          try {
>                  System.out.println("22 Read byte " + 
contentStream.read());
>               } catch (Exception e) {
>                  System.out.println("22 Failed to read bytes");
>               }

You can NOT read from the connection after releasing it.
See my previous mail below.

cheers,
  Roland

> -----Original Message-----
> From: Roland Weber [mailto:ROLWEBER@de.ibm.com] 
>
> The stream is connecting your client to a server. It can be closed 
> by your application reading to EOF,
***********************************
> by your application releasing 
> the connection you used for executing the GET method,
***********************************
> or by the 
> server. You have to provide more specific information about what you
> are doing if you want us to help.


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


Mime
View raw message