double submit of forms

<[email protected]> Tue, 11 Aug 2009 14:51:58 -0500
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <047619DE22807D4192B0B9EB64E45CC123C1FA3186@MSGCMSV21024.ent.wfb.bank.corp>
I am trying to use HttpUnit 1.7 and I am encountering
an odd behavior where it submits the same form twice
when using form.submit(SubmitButton).

I do not see this behavior if I manually construct
a POST request to the same URL with the same params.

Attaching a WebClientListener, in both cases the
POST to A does a 302 redirect to B and I see the
requests for A, B, and the related javascript
files on B (let's call them X).

With the manually constructed POST request I see
calls for A, B, X but with form.submit(SubmitButton)
I see A, B, X, A, B, X -  it does everything twice!

output from the server confirms those are genuine server hits.

This was not a problem in an older version of HttpUnit
that I was using (which was a customized version
of 1.6 (I think)).

Has anyone seen this bug or know of a work-around?

(example code attached, unfortunately not runnable w/o my server)

Thanks,
Dan

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
Example.java (application/octet-stream, 1.7 KB) - not displayed