Skip to content

POST Files #32

@twogee

Description

@twogee

Issue by GoogleCodeExporter
Monday May 11, 2015 at 22:05 GMT
Originally opened as https://github.com/twogee/missing-link/issues/32


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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions