[drakma-devel] parameters in post requests

Edi Weitz edi at agharta.de
Tue Sep 25 15:02:15 UTC 2007


On Tue, 25 Sep 2007 13:12:12 +0200, Jan Rychter <jan at rychter.com> wrote:

> I'm about to release CL-SQS, an interface to the Amazon Web Services
> SQS service. It uses Drakma for HTTP requests. However, I have
> encountered one issue: Amazon SQS requires POST requests with URL
> parameters, and Drakma by default does not want to include any
> parameters with POST requests.

Yes, because usually the parameters of a POST request are in the body.

> -              (when (and parameters (not (eq method :post)))
> +              (when parameters

That might be the right thing for your library, but it's certainly
wrong for Drakma in general as it would always send the parameters
twice.

I'll see if I can come up with something better.



More information about the Drakma-devel mailing list