My html client uses DHTML to create Form <input type="file"> elements (,
with the forms ENCTYPE="multipart/form-data" ) for uploading 0..n files to a
server,
Am I right that there currently is no way to use Cactus/HttpUnit to test
this ?

I know I can get a HttpUnit WebRequest from a HttpUnit's WebForm, but Cactus
does not offer to use  HttpUnit's WebRequest objects alternativly to
Cactus's WebRequest objects like it does with the WebResponse object- ( and
neither does HttpUnit's WebForm provide a way to add form elements
specifying their type).

If I am not totally mistaken in the above: Could someone roughly scetch what
I need to do in order to extend Cactus ( and / or eventually HttpUnit) to
provide this functionality  ?
See in "Release Changes": Newly added "WebRequest.setContentType" method
will enable "multipart/form-data" and that other preparations (structural
(?)) for sendig files have been made....
+ Maybe smart if WebRequest could take String of html code and/or
HttpServletRequest directly ( as in a constructor ) in the future ..?

Thanks



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to