Function: url-http-file-exists-p

url-http-file-exists-p is a byte-compiled function defined in url-http.el.gz.

Signature

(url-http-file-exists-p URL)

Aliases

url-http-file-readable-p

Source Code

;; Defined in /usr/src/emacs/lisp/url/url-http.el.gz
(defun url-http-file-exists-p (url)
  (let ((buffer (url-http-head url)))
    (when buffer
      (let ((status (url-http-symbol-value-in-buffer 'url-http-response-status
                                                     buffer 500)))
        (prog1
            (and (integerp status)
                 (>= status 200) (< status 300))
          (kill-buffer buffer))))))