derbylock / missing-link

Automatically exported from code.google.com/p/missing-link
0 stars 0 forks source link

POST Files #32

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice to be able to POST files in a multipart message something like:

        <http method="POST" url="someurl.php">
            <query>
                <parameter name="project" value="Project Name Here"/>
                <parameter name="version" value="1.2.3"/>
                <file name="uploadedFile" path="localfile.txt"/>
                <!-- Note: the 'name' attribute should be changeable so it can
                           be configured to the specific forms field. -->
            </query>
        </http>

After I fixed ant-contrib I could do: 

        <postMethod multipart="true" url="http://blah/upload.php">
            <text name="project" value="Project Name Here"/>
            <text name="version" value="1.2.3"/>
            <file name="uploaded" path="/home/blah/test.txt" contentType="text/xml;charset=utf-8"/>
        </postMethod>

But I would like to use your light weight utility... especially since 
ant-contrib is dead and wouldn't respond with me wanting to patch up that 
functionality!

Cheers,

Randy

Original issue reported on code.google.com by randy.re...@gmail.com on 17 Jan 2012 at 5:22

GoogleCodeExporter commented 8 years ago
I thought I was going to be able to use this library until I saw this issue.  
Any chance of this being considered for implementation?

Thanks.

Original comment by cpuffalt on 5 Dec 2012 at 11:44