Hi Craig,

are you sure that the problem is a possible infinite loop prevented by
htmlunit?

Your js code is wrong: it should be
form.method = method;
instead of
form.method.value = method;

Marc.

Craig Copeland wrote:
> 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 

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

Reply via email to