using PUT method with parameters

Hans Hübner hans.huebner at gmail.com
Wed Jul 17 08:50:15 UTC 2013


Hi Edi,

while file uploads only make sense with form data, I could see how one
would encounter an API that uses PUT with form data. I have not seen such
an API myself, but I see no reason not to support such APIs. Do you?

-Hans
Am 17.07.2013 10:42 schrieb "Edi Weitz" <edi at agharta.de>:

> I'm also on vacation, so just a quick response:
>
> On Wed, Jul 17, 2013 at 8:54 AM, Hans Hübner <hans.huebner at gmail.com>
> wrote:
> > First off, it seems that DRAKMA restricts the use of file upload
> parameters
> > to POST requests in the WHEN form that you pasted.  I do not think that
> is
> > the right thing, as the HTTP standard does not restrict the use of
> request
> > bodies to specific methods.
>
> I think you're mixing up two things - request bodies and parameters.
> Drakma doesn't disallow request bodies - that's what CONTENT is for.
> But Drakma simply doesn't know what to do with file parameters if
> you're not sending a POST request as they only make sense with form
> data.
>
> I don't think the patch is useful.
>
> Peter, why are you not using :CONTENT?
>
> Cheers,
> Edi.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/drakma-devel/attachments/20130717/c1da084c/attachment.html>


More information about the Drakma-devel mailing list