Hi all,
I need to find a solution for calling httpclient.executeMethod in
non-blocking mode, so I can retrieve data with
getResponseBodyAsStream() without waiting for the end of the execution
of the method.
The scenario is the following:
I write in PHP a page that with flush method output some strings that I
need to capture while the page are downloading.
I write in Java this code:
httpClient.executeMethod(method);
BufferedReader reader = new BufferedReader(new
InputStreamReader(method.getResponseBodyAsStream()));
String line = null;
while((line = reader.readLine()) != null) {
System.out.println(line);
}
This code does not resolve my problem, because the executeMethod blocks
until all data is downloaded.
I need that executeMethod don't block, so I can retrieve output while
executeMethod capture it.
Is there a way to do this?
Thank you very much.
Alfredo
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]