On Tue, 2007-07-24 at 14:57 -0700, TomSalmon wrote: > Hi, > > I am using HttpClient 3.0.1 and have a quick question, how do you hide > warnings?
By configuring the underlying logging toolkit used by your application. HttpClient does not produce any direct output to the console. It uses Commons Logging abstraction layer to direct logging events to a specific logging toolkit. Please refer to the HttpClient logging guide and Commons Logging resources for details: http://jakarta.apache.org/commons/httpclient/logging.html http://jakarta.apache.org/commons/logging/commons-logging-1.1/guide.html > I cannot find the method/option/parameter to hide them. I > understand why they appear, but they have no effect on the working order of > my program. Warnings: > > 24-Jul-2007 22:51:59 org.apache.commons.httpclient.HttpMethodBase > getResponseBody > WARNING: Going to buffer response body of large or unknown size. Using > getResponseBodyAsStream instead is recommended. > > 24-Jul-2007 22:51:58 org.apache.commons.httpclient.HttpMethodDirector > isRedirectNeeded > INFO: Redirect requested but followRedirects is disabled > > I get these every time I grab the contents of a html page for processing, > and needless to say it just clutters up the command line > > Thanks in advance > > Tom Salmon > > P.S. HttpClient is by far the best http client ive used, in any language - > well done! > HttpClient 4.0 is going to be much better. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
