Closed junjizhi closed 2 years ago
(require 'request) (setq request-backend 'url-retrieve) (request "http://httpbin.org/post" :type "POST" :data '(("key" . "value") ("key2" . "value2")) ;; :data "key=value&key2=value2" ;; this is equivalent :parser 'json-read :success (cl-function (lambda (&key data &allow-other-keys) (message "I sent something"))))
#s(request-response nil nil nil nil nil "http://httpbin.org/post" nil (:type "POST" :data "key=value&key2=value2" :parser json-read :success (closure (t) (&rest --cl-rest--) " (fn &key DATA &allow-other-keys)" (let* ((data (car (cdr (plist-member --cl-rest-- ':data))))) (message "I sent something"))) :error #[128 "ÆÇ\"A@ÈÉ! ! !]X H ÊËÉÊÌÀ¢ ##X<
Environment
Example I tried
error in Messages buffer: