cookies not working
nightshade427 opened this issue · 2 comments
nightshade427 commented
When trying to use cookies with drakma async it fails with undefined method send-cookie-p
(as:with-event-loop (:catch-app-errors t)
(asf:alet ((mine (drakma-async:http-request "http://www.fqdn.com"
:cookie-jar (make-instance 'drakma:cookie-jar
:cookies (list (make-instance 'drakma:cookie
:domain ".fqdn.com"
:name "test"
:value "1"))))))
(format t "data: ~a" mine)))
;; Evaluation aborted on #<UNDEFINED-FUNCTION SEND-COOKIE-P {10038463E3}>.
Whereas this works
(drakma:http-request "http://www.fqdn.com"
:cookie-jar (make-instance 'drakma:cookie-jar
:cookies (list (make-instance 'drakma:cookie
:domain ".fqdn.com"
:name "test"
:value "1"))))
orthecreedence commented
Fixed! Just needed to import the symbol from drakma in package.lisp. Please confirm.
nightshade427 commented
Works great! Thanks again ;)