[drakma-devel] POST request and content-type

Nicolas Lamirault lam at tuxfamily.org
Fri Jun 1 10:27:02 UTC 2007


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>
#<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 !


-- 
Nicolas Lamirault




More information about the Drakma-devel mailing list