[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: url-cache - (require 'url)
From: |
Mark Plaksin |
Subject: |
Re: url-cache - (require 'url) |
Date: |
Sat, 14 Jan 2006 13:32:52 -0500 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.51 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>> It would also be nice if there was an easy way to get at the HTTP headers
>> associated with a response. Maybe there is a way but I can't find it.
>
> Maybe for that, url-http is more appropriate.
> After all, there won't be any HTTL headers if the URL is not using HTTP.
Right. How about this patch to url-http.el?
Test like this:
(setq url-http-save-headers t)
(url-retrieve-synchronously "http://rss.slashdot.org/Slashdot/slashdot")
(setq url-http-save-headers nil)
After that url-http-headers should look like this:
(("Content-Type" . "text/xml;charset=utf-8") ("Transfer-Encoding" . "chunked")
("Connection" . "Keep-Alive") ("Keep-Alive" . "timeout=5, max=100") ("ETag" .
"xRkHefoJaorPexoLfvkTcHeudUY") ("Last-Modified" . "Sat, 14 Jan 2006 18:29:23
GMT") ("Server" . "Apache") ("Date" . "Sat, 14 Jan 2006 18:30:49 GMT"))
url-http.saveheaders.diff
Description: Text document
- Re: url-cache - (require 'url), (continued)
- Re: url-cache - (require 'url), Stefan Monnier, 2006/01/02
- Re: url-cache - (require 'url), David Reitter, 2006/01/02
- Re: url-cache - (require 'url), Stefan Monnier, 2006/01/02
- Re: url-cache - (require 'url), David Reitter, 2006/01/03
- Re: url-cache - (require 'url), Stefan Monnier, 2006/01/03
- Re: url-cache - (require 'url), David Reitter, 2006/01/03
- Re: url-cache - (require 'url), Stefan Monnier, 2006/01/03
- Re: url-cache - (require 'url), Stefan Monnier, 2006/01/05
- Re: url-cache - (require 'url), Mark Plaksin, 2006/01/06
- Re: url-cache - (require 'url), Stefan Monnier, 2006/01/08
- Re: url-cache - (require 'url),
Mark Plaksin <=
- Re: url-cache - (require 'url), Stefan Monnier, 2006/01/14
- Re: url-cache - (require 'url), Mark Plaksin, 2006/01/15
- Re: url-cache - (require 'url), Stefan Monnier, 2006/01/15
- Re: url-cache - (require 'url), Mark Plaksin, 2006/01/15
- Re: url-cache - (require 'url), Stefan Monnier, 2006/01/15
- Re: url-cache - (require 'url), Mark Plaksin, 2006/01/15
- Re: url-cache - (require 'url), Stefan Monnier, 2006/01/16