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: [email protected]
For additional commands, e-mail: [email protected]