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: SynchBasicHttpParams and ImmutableHttpProcessor missing
Date Fri, 04 Sep 2009 21:31:39 GMT
HockeyDave wrote:
> Hi Oleg.
> 
> Still struggling a bit with the NIO example.  How would one get the Response
> Entity Output?
> 
>             HttpContext context = conn.getContext();
>             BasicHttpRequest httpget = new BasicHttpRequest("GET", "/",
> HttpVersion.HTTP_1_1);
>             RequestHandle handle = new RequestHandle(connMgr, conn); 
>             
>             context.setAttribute("request", httpget);
>             context.setAttribute("request-handle", handle);
>             
>             queue.add(handle);            
>             conn.requestOutput();
> // I assume something should go here to get and process the response
> data???????
> 
> Thanks.
> Dave

Dave,

Make sure you have read this tutorial:

http://hc.apache.org/httpcomponents-core/tutorial/html/index.html

Especially this bit:

http://hc.apache.org/httpcomponents-core/tutorial/html/nio.html#d0e1686

Hope this helps

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