|
From: SourceForge.net <no...@so...> - 2003-06-28 17:24:58
|
Bugs item #738548, was opened at 2003-05-15 19:13 Message generated for change (Comment added) made by mbowler You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=738548&group_id=47038 Category: None Group: 1.2.1 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Donald Bell (donaldbell) >Assigned to: Mike Bowler (mbowler) Summary: Form values are not Posted Properly to Server Initial Comment: If I have a simple form that has two fields on it that have identical names with identical values only one set of the name value pair is submitted to the server. Example simple form. <form blah....> <input name="field1" value="" /> <input name="field1" value="" /> </form> I know this simple form may be dumb, but in a more real world example: <form blah....> <input name="person" value="Jerry" /> <input name="payedBill" value="Yes" /> <input name="person" value="Rachel" /> <input name="payedBill" value="Yes" /> <input name="person" value="Zack" /> <input name="payedBill" value="No" /> </form> On the server you would expect two arrays with these entries. Person array [Jerry, Rachel, Zack] payedBill array [Yes, Yes, No] What you see using HtmlUnit is this Person array [Jerry, Rachel, Zack] payedBill array [Yes, No] The bad code seems to be this line the in HttpWebConnection.makeHttpMethod() ((PostMethod) httpMethod.removeParameter (pair.getName(), pair.getValue()); ---------------------------------------------------------------------- >Comment By: Mike Bowler (mbowler) Date: 2003-06-28 13:24 Message: Logged In: YES user_id=46756 Fixed. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=738548&group_id=47038 |