-
(require 'json) (require 'url) (with-temp-buffer (url-retrieve "https://httpbin.org/get" (lambda (events) (goto-char url-http-end-of-headers) (let ((json-object-type 'plist) (json-key-type 'symbol) (json-array-type 'vector))) (json-read)))) (with-temp-buffer (url-retrieve-synchronously "https://httpbin.org/get") (goto-char url-http-end-of-headers) (json-read)) (with-temp-buffer (url-retrieve-synchronously "https://httpbin.org/get") (setf (point) url-http-end-of-headers) (prog1 (json-read) (kill-buffer)))
-
(url-retrieve "https://www.duckduckgo.com" (lambda (status) (print status) (switch-to-buffer (current-buffer))))
Please register or sign in to comment