commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guy Katz <>
Subject [HTTPClient] warn long message about buffering
Date Wed, 27 Oct 2004 09:57:38 GMT
i just upgraded to http client 2.0.2.
i noticed that i keep getting the following log message:

"2004-10-26 22:36:18 [http8080-Processor25] WARN
se  - Going to buffer response body of large or unknown size. Using
sStream instead is recommended."

my usage of HTTP Client is for screen scrapping. i read the HTML of a page
from a URL as is and parse it to find the data i need.
i am using the getAsString method of the Http client API. this message
appears only for the new version.

i was wondering if someone could shed light about this.
should i really use the get as stream instead? is there a performance
benefit when using the getAsStream over the more convenient getAsString?
also, the message is pretty annoying cause i use thew screen scapping all
the time, i am not sure that it should be there. if its a matter of best
practice than maybe the mesage should not be logged at all.

thanks in advance.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message