Previous: Hooks, Up: Advanced configuration [Contents][Index]
URL retrieves the pages and takes care of cookies, history of visited urls, and caching.
Set ‘url-automatic-caching’ to t
to enable caching. The cached files
will be saved in ‘url-cache-directory’.
Set ‘url-history-track’ to non-nil to keep track of all URLs visited
in the current Emacs session, set it to t
to save the hash table of URLs
at the end of each Emacs session.
‘url-privacy-level’ is the main URL variable for request privacy. Its
default is '(email)
to keep your email address private. If you allow
Referers, see ‘url-lastloc-privacy-level’. Call the function
‘url-setup-privacy-info’ after modifying privacy variables.
Set a list of regular expressions of URLs to allow and disallow
cookies from in ‘url-cookie-trusted-urls’ and
‘url-cookie-untrusted-urls’, respectively. If you want to ignore all
cookies other than those from the hosts/URLs you trust, it’s best to
set ‘url-cookie-untrusted-urls’ to '("https?://")
. If you want no
cookies at all, use '(".*")
. This has to do with how url determines
cookie URL matches. Set ‘url-cookie-confirmation’ to t
if you want
to confirm setting new cookies.
You can set the ‘url-debug’ variable to the types of messages to log. You might want to set this temporarily:
(setq url-debug '(http retrieval))