hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: HTTPClient 4 Streaming
Date Mon, 08 Nov 2010 16:27:25 GMT
On Mon, 2010-11-08 at 16:14 +0100, Darius Bohni wrote:
> Hi,
> 
> I try to read an http stream (ex. Shoutcast) with a virtual address (with
> and without using an http proxy). How can I do this with the new HttpClient
> 4?
> It hangs on execute() when using a GET request. I've read that execute()
> waits until all data is arrived, is there no workaround?

This is not the case. HttpClient#execute method returns immediately
after receiving a valid response head (status line + headers). The
response content can be obtained from the HttpEntity associated with the
HttpResponse object returned by the execute method.  

Oleg



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


Mime
View raw message