Re: using PUT method with parameters

2013-07-17 Thread Peter Wood
On Wed, 17 Jul 2013 10:42:36 +0200, Edi Weitz wrote: > > Peter, why are you not using :CONTENT? > Because I had not read the documentation carefully enough. :content works fine for what I need to do. Thanks. > Cheers, > Edi. Regards, Peter

Re: using PUT method with parameters

2013-07-17 Thread Edi Weitz
RFC 2616 says that 'the "multipart/form-data" type has been specifically defined for carrying form data suitable for processing via the POST request method,' so I don't think there's an immediate need to support this content type for other request methods. I'd say we should cross this bridge when

Re: using PUT method with parameters

2013-07-17 Thread Hans Hübner
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" : > I'm also on vacation, so

Re: using PUT method with parameters

2013-07-17 Thread Edi Weitz
I'm also on vacation, so just a quick response: On Wed, Jul 17, 2013 at 8:54 AM, Hans Hübner 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 do

Re: using PUT method with parameters

2013-07-16 Thread Hans Hübner
Peter, I am unsure whether the change that you propose really solves the problem that you have. 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 res

using PUT method with parameters

2013-07-16 Thread Peter Wood
Hi Using Drakma-1.3.2 (via quicklisp) and Sbcl-1.1.9 on Linux (Debian Wheezy): I believe it is allowed to send parameters with a PUT request, just as with a POST request, but Drakma only allows POST with parameters. In request.lisp, changing this (when (and file-parameters-p (not (eq method :