Skip to content
  • Marcus Kammer @marcuskammer ·
    (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)))
  • Marcus Kammer @marcuskammer ·

    (url-retrieve "https://www.duckduckgo.com" (lambda (status) (print status) (switch-to-buffer (current-buffer))))

0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment