From: <Mik...@su...> - 2003-03-13 21:36:28
|
You can safely ignore that warning. It is coming from HttpClient. HtmlUnit disables redirection in HtmlUnit and performs the logic itself. Unfortunatley, HttpClient complains about it. Mike |---------+--------------------------------------------> | | John Larocque | | | <joh...@ca...> | | | Sent by: | | | htm...@li...ur| | | ceforge.net | | | | | | | | | 03/13/2003 03:28 PM | | | | |---------+--------------------------------------------> >--------------------------------------------------------------------------------------------------------------| | | | To: htm...@li... | | cc: | | Subject: [HtmlUnit] followredirects disabled problem | >--------------------------------------------------------------------------------------------------------------| I am a novice to HtmlUnit and as a first exercise, wrote a test program based closely on "Submitting a Form" from this page: http://htmlunit.sourceforge.net/gettingStarted.html The formo on my test HTML page features three inputs: text, password, submit. I set the text and password using setValueAttribute, and then attempt to submit the form. When I execute this command: final HtmlPage page2 = (HtmlPage)button.click(); I get this compile warning: [INFO] HttpMethod - -Redirect requested but followRedirects is disabled So I then imported java.net and asked this question: assertEquals(HttpURLConnection.getFollowRedirects(), true); Yes, indeed FollowRedirects is set to true. And yet the warning claims it is disabled. Ultimately, I was not able to submit the form. Thoughts? ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ HtmlUnit-develop mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-develop |