Login | Register
My pages Projects Community openCollabNet

Discussions > dev > [maxq-dev] Support for Multipart HTTP Requests

maxq
Discussion topic

Back to topic list

[maxq-dev] Support for Multipart HTTP Requests

Author edgar
Full name Edgar Nidome
Date 2003-03-13 14:48:04 PST
Message Hi,

I'm Edgar Nidome, I'm with CollabNet. I'm currently an Observer on this
project. (The role was assigned for me by my co-worker Daniel Rall when
he migrated the MaxQ project to tigris.org)

I would like to contribute a feature for MaxQ. The feature is support
for Multipart/form-data type of HTTP Requests. Current versions of
SourceCast (which tigris.org runs on top of) make use of this, and hence
is a necessity for MaxQ to support it, if we are to use MaxQ. Scarab,
a major project on tigris.org, uses Mutlipart request alot.

Outline of changes:
I updated the attached 3 java files. I left my comments
'//Added/Modified by Edgar - Multipart' with hopes that it would be
easier when diffing. They should obviously be removed.

The files have been merged with CVS as of 3/13/03 3:20pm.

EditorPane.java:
Captures the Multipart request information and translates it into the
python script.
I encountered this issue in Scarab: Form parameters are allowed to have
duplicate names. Ie, MyServlet?attv=_1​&attv=_2&attv=_​3, which could be
used as attribute descriptors or what not. The point being, that they
are allowed. Therefore, storing form arguments in a Map doesn't
suffice. Instead I have opted for the use of a Vector, cotaining
two-item Lists (name and value).

HttpTestCase.java:
It has a new postMultiPart() method that handles the multipart form
submits when replaying the test scripts.
The get() and post() methods now take a Vector instead of the Map.

Action.java:
Updated to carry the Multipart's form-data information.

I'm including a test script so you can all see the new output.

Hope this is useful.
Regards,
Edgar Nidome

« Previous message in topic | 1 of 11 | Next message in topic »

Messages

Show all messages in topic

[maxq-dev] Support for Multipart HTTP Requests edgar Edgar Nidome 2003-03-13 14:48:04 PST
     [maxq-dev] Re: Support for Multipart HTTP Requests jmm James Manning 2003-03-13 22:51:21 PST
     [maxq-dev] Re: Support for Multipart HTTP Requests jmm James Manning 2003-03-13 22:59:58 PST
         [maxq-dev] Re: Support for Multipart HTTP Requests jmm James Manning 2003-03-14 00:29:34 PST
             Re: [maxq-dev] Re: Support for Multipart HTTP Requests James Cooper <pixel at bitmechanic dot com> James Cooper <pixel at bitmechanic dot com> 2003-03-14 08:33:52 PST
                 RE: [maxq-dev] Re: Support for Multipart HTTP Requests edgar Edgar Nidome 2003-03-14 09:33:04 PST
                 [maxq-dev] Re: Re: Support for Multipart HTTP Requests jmm James Manning 2003-03-14 11:06:05 PST
             RE: [maxq-dev] Re: Support for Multipart HTTP Requests edgar Edgar Nidome 2003-03-14 10:11:31 PST
                 [maxq-dev] Re: Re: Support for Multipart HTTP Requests jmm James Manning 2003-03-14 12:38:27 PST
     [maxq-dev] Re: Support for Multipart HTTP Requests jmm James Manning 2003-03-13 23:11:37 PST
         [maxq-dev] Re: Support for Multipart HTTP Requests jmm James Manning 2003-03-13 23:13:51 PST
Messages per page: