<html>
<body>
I have been looking for a way to get rid of these and the best guess I
have currently is here:<br>
<font face="Courier, Courier">com.gargoylesoftware.htmlunit.HttpWebConnection,
line 228:<br><br>
</font>currently:
<font face="Courier, Courier">((SimpleLog)log).setLevel(
SimpleLog.LOG_LEVEL_WARN );<br>
</font>change to:
<font face="Courier, Courier">((SimpleLog)log).setLevel(
SimpleLog.LOG_LEVEL_OFF ); // or whatever other level will do
it<br><br>
</font>I'll test this as soon as I can get all the dependencies
straightened out for the latest code.<br><br>
Brad C<br><br>
<br><br>
<blockquote type=cite class=cite cite><pre> > just a small
question concerning redirects: When I enable my webclient
> to follow redirects, like this:
>
> webClient.setRedirectEnabled(true);
>
> I still get error messages like this:
>
> 26.02.2003 16:07:05
org.apache.commons.httpclient.HttpMethodBase
> processRedirectResponse
> INFO: Redirect requested but followRedirects is
disabled
>
> Does this mean anything? I get the same messages when I did
not enable
> redirecting within the webclient.
It's an annoyance that I haven't figured out how to fix yet.
For a variety of reasons, I handle the redirection logic inside
HtmlUnit
rather than letting commons-httpclient handle it for me. It's
commons-httpclient that is displaying that message because I have
explicitly disabled its redirection support.
I'd like to filter out that warning message but haven't figured out
a
clean way of doing
it.</pre><font face="Courier New, Courier"></blockquote><br>
</font></body>
</html>
|