[Webtest] Is there an option in htmlunit or webtest to allow HTTP 302 to be treated as 303?
Craig Copeland
webtest@lists.canoo.com
Fri, 14 Jul 2006 13:11:11 -0700 (PDT)
Sure. No problem. It's just a submit call:
function submitFormToMethod(form, method) {
form.method.value = method;
form.submit();
}
Also, I've found a note in the htmlunit message lists that may be of some help
posted by Marc Guillemot. (See below.) It seems that if the same URL is
returned, then the code bails out, which is reasonable in order to avoid
infinite redirects. However, as Marc suggests maybe a counter would be
appropriate to avoid this instead of being quite so literal. I wonder if this
has been pushed to a bug yet.
http://sourceforge.net/mailarchive/message.php?msg_id=14381525
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com