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.
Would it be possible to include this small modification in Drakma?
diff -c /Users/jwr/lisp/site/drakma-0.10.0/request.lisp.original /Users/jwr/lisp/site/drakma-0.10.0/request.lisp
--- /Users/jwr/lisp/site/drakma-0.10.0/request.lisp.original Tue Sep 25 13:02:42 2007
+++ /Users/jwr/lisp/site/drakma-0.10.0/request.lisp Tue Sep 25 13:03:19 2007
@@ -428,7 +428,7 @@
(format http-stream "~?~C~C" fmt args #\Return #\Linefeed))
(write-header (name value-fmt &rest value-args)
(write-http-line "~A: ~?" name value-fmt value-args)))
- (when (and parameters (not (eq method :post)))
+ (when parameters
(setf (uri-query uri)
;; append parameters to existing query of URI
(format nil "~@[~A~]~:*~:[~;&~]~A"
thanks,
--Jan