Sven,

I've not tried this, but if you send a "Connection: close" header on the request, the server should echo that on the response. If that header is on the response from the server, the the "releaseConnection()" function will (or at least it should) immediately close the connection, rather than consuming the remainder of the body of the response.

Hope that helps.

-Eric.

Sven Ko"hler wrote:

Hi,

it seems that releaseConnection finishes the http-download until it is complete. I don't want that. I'm looking for a way to close the HttpConnection if the download wasn't completed yet.
I'm aware that one cannot "abort" a Http-Transfer without closing the connection and therfor loosing it for keep-alive etc.


There doens't seem to be a way of closing the HttpConnection by using the HttpMethodBase-Object. What should i try next?

Thx
Sven


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to