Hi Michael,

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?

yes

Sounds like quite some unnecessary load and wasted time to me.

exactly :-(

Do you know if this issue is already addressed at HtmlUnit?

it isn't and in fact there isn't even an issue opened for it.
I've discovered it by a client and he was happy with the workaround that consist in explicitly setting the request header. As a consequence he was not motivated to provide a patch or to let me do it while I was working for him.

If you're motivated to provide a patch, it is welcome ;-)

Cheers,
Marc.
--
HtmlUnit support & consulting from the source
Blog: http://mguillem.wordpress.com

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to