hello, i make some tests with Drakma. i would like to change the content-type of a POST request, but i've got always "application/x-www-form-urlencoded" :
CL-USER> (drakma:http-request "http://lisp.org/" :method :post :content-type "application/atom+xml") POST / HTTP/1.1 Host: lisp.org User-Agent: Drakma/0.7.0 (SBCL 1.0; Linux; 2.6.18-4-486; http://weitz.de/drakma/) Accept: */* Connection: close Content-Type: application/x-www-form-urlencoded Content-Length: 0
HTTP/1.1 307 Temporary Redirect Date: Fri, 01 Jun 2007 10:23:23 GMT Connection: Close Server: AllegroServe/1.2.43 Transfer-Encoding: chunked LOCATION: /index.html
#() 307 ((:DATE . "Fri, 01 Jun 2007 10:23:23 GMT") (:CONNECTION . "Close") (:SERVER . "AllegroServe/1.2.43") (:TRANSFER-ENCODING . "chunked") (:LOCATION . "/index.html")) #<PURI:URI http://lisp.org%3E #<FLEXI-STREAMS:FLEXI-IO-STREAM {AB1AEB9}> T
someone knows if i make a mistake ? it is a bug ? thanks for anyhelp ...
PS: very good soft !
On Fri, 01 Jun 2007 12:27:02 +0200, Nicolas Lamirault lam@tuxfamily.org wrote:
i would like to change the content-type of a POST request, but i've got always "application/x-www-form-urlencoded" :
[...]
someone knows if i make a mistake ? it is a bug ?
No, it's documented behaviour:
http://weitz.de/drakma/#content-type
PS: very good soft !
Thanks... :)
thanks a lot
Edi Weitz edi@agharta.de writes:
On Fri, 01 Jun 2007 12:27:02 +0200, Nicolas Lamirault lam@tuxfamily.org wrote:
i would like to change the content-type of a POST request, but i've got always "application/x-www-form-urlencoded" :
[...]
someone knows if i make a mistake ? it is a bug ?
No, it's documented behaviour:
http://weitz.de/drakma/#content-type
PS: very good soft !
Thanks... :) _______________________________________________ drakma-devel mailing list drakma-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel