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

Reply via email to