Gunnar, Thanks for your proposition. This is indeed interesting. I remember that when I introduced the HttpUnit WebReponse integration I also thought about using the HttpUnit's features to send HTTP requests. However, I think there will be issues. But I haven't looked in details. Maybe they can be overcome ?
WRT your proposition about a higher level API to send HTML, I think it is interesting although I'd like to see some more details. Also, does it work for sending XML in the same way ? What about binary files ? Or is geared specifically for multipart/form-data ? Also, do you know if Jakarta Commons HttpClient already provides this feature. If not, wouldn't it be best to implement it in that project (especially as Cactus is already using HttpClient) ? I'd love not to have to maintain this feature as part of Cactus as it is not really related to Cactus's core business. I'm quite sure there would be interest for it on Jakarta-Commons. If you're interested, can you post a message on Commons-dev ? I don't much about multipart/form-data. What is the intent ? When is it used over simple form data (POST) ? I have never had the need to use it in all my web projects which is probably why I am so ignorant of it ! :-) Thanks -Vincent > -----Original Message----- > From: Gunnar Ole Skogen [mailto:[EMAIL PROTECTED]] > Sent: 28 February 2002 07:29 > To: [EMAIL PROTECTED] > Subject: setUserData ( multipart/form-data ) :=> low levelstuff > > Hi, > > Proposal for new feature: > > Using setUserData to sent a multipart/form ( or other) means one has to do > what a browser does when sending a request from a form with ContentType = > multipart/form-data. I did this low level stuff ( inserting parameter > element, boundaries, reading files into the buffer etc) and it works. > > What would be time saving is to be able to simply input the html code in > the > request in the future. > Using HttpUnit's request class as one can use it's response class would > make > things symetric ( have not checked if the above is possible with HttpUnit > ) > There probably are some 3rd party libs for transforming html into a > request-object ? > > If you are interested and this, in that case, needs to be implemented in > Cactus itself, I can send you the code I use for inserting > multipart/form-data into setUserData . > > -Gunnar Skogen > > -- > To unsubscribe, e-mail: <mailto:cactus-user- > [EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:cactus-user- > [EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
