Thank you, Marc, for this information. Does this mean that WebTest (or HtmlUnit) will currently request every page twice if authentication is required: The first time without authentication (which fails), and then after the failure give it another try with the user name? Sounds like quite some unnecessary load and wasted time to me.
Do you know if this issue is already addressed at HtmlUnit? Cheers, Michael -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Marc Guillemot Sent: Mittwoch, 27. Oktober 2010 13:02 To: [email protected] Subject: Re: [Webtest] HTTP 401 Hi Michael, I think that this is due to a bug in HtmlUnit: once basic authorization has occurred, HtmlUnit should send it for all subsequent requests for the same domain (not sure what the exact limitation is) but it doesn't do it. A workaround consist into explicitly set the authentication header as request header to be sent for all requests. Cheers, Marc. -- HtmlUnit support & consulting from the source Blog: http://mguillem.wordpress.com On 10/27/2010 09:04 AM, Michael Zwick wrote: > Dear all, > > when looking at the Apache access logs I noticed the WebTest apparently > requested all pages twice: First without user name giving a HTTP 401 > error (unauthorized, access denied), and then with user name: > > 172.20.35.19 - "" [20/Oct/2010:04:32:52 +0200] "POST > /pls/development/phy_explorer.query HTTP/1.1" 401 534 > > 172.20.35.19 - webtest [20/Oct/2010:04:32:53 +0200] "POST > /pls/development/phy_explorer.query HTTP/1.1" 200 51777 > > 172.20.35.19 - "" [20/Oct/2010:04:32:53 +0200] "POST > /pls/development/phy_result.display_input_aj HTTP/1.1" 401 534 > > 172.20.35.19 - webtest [20/Oct/2010:04:32:53 +0200] "POST > /pls/development/phy_result.display_input_aj HTTP/1.1" 200 2591 > > I'm using R_1809. Any ideas what's going on? > > Thanks a lot, > > Michael > _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

