调用下面这个函数
(defun f1 ()
(let ((url-request-method "GET")
(url-mime-accept-string "application/json"))
(with-temp-buffer
(list url-request-method url-mime-accept-string)
)
))
应该得到
("GET" "application/json")
但是下面这段
(with-current-buffer
(url-retrieve-synchronously "http://example.com" t)
(f1))
给出
("GET" nil)
为何?请道友解惑,多谢!