1 2007-01-14 Magnus Henoch <mange@freemail.hu>
3 * url-proxy.el (url-proxy-object): Remove.
4 (url-proxy): Don't use `url-proxy-object'. Act according to type of
5 proxy (currently only HTTP supported).
7 * url.el (url-retrieve-internal): Don't use `url-proxy-object'.
9 * url-http.el (url-http-proxy): New variable.
10 (url-http-create-request): Use it. Don't use `url-proxy-object'.
11 (url-http): Treat `url' argument as resource to download, and
12 dynamic variable `url-using-proxy' as proxy to use. Set
13 `url-current-object' to actual URL, and `url-http-proxy' to proxy
15 (url-http-handle-cookies): Assume that `url-current-object' does
16 not point to the proxy used.
17 (url-http-async-sentinel): Adapt error message.
19 2006-12-10 Juanma Barranquero <lekktu@gmail.com>
21 * url-gw.el (url-gateway-nslookup-program): Doc fix.
23 2006-12-08 Magnus Henoch <mange@freemail.hu>
25 * url-proxy.el (url-proxy-object): New variable.
26 (url-proxy): Bind it instead of `proxy-object'.
28 * url-http.el (url-http-create-request): Remove url argument, use
29 the buffer-local variable `url-http-target-url' instead. Both
30 callers updated. Simplify proxy handling.
31 (url-http): Don't make proxy-object buffer local.
33 * url.el (url-retrieve-internal): Bind url-proxy-object to nil.
35 2006-11-26 Magnus Henoch <mange@freemail.hu>
37 * url-http.el (url-http-wait-for-headers-change-function): Use
38 `when' instead of `if' when possible.
39 (url-http): Define url-http-response-version.
40 (url-http-parse-response): Set it.
41 (url-http-parse-headers): Use it to determine keep-alive behavior.
43 2006-11-23 Diane Murray <disumu@x3y2z1.net>
45 * url-http.el (url-http-content-length-after-change-function): Use
48 * url-util.el (url-display-percentage): Only show a message if
49 `url-show-status' is non-nil.
51 2006-11-15 Magnus Henoch <mange@freemail.hu>
53 * url-http.el (url-http): Make proxy-object buffer-local, to
54 handle proxied asynchronous connections correctly.
56 * url-parse.el (url-generic-parse-url): Use with-temp-buffer.
58 2006-11-15 Shun-ichi GOTO <gotoh@taiyo.co.jp> (tiny change)
60 * url-http.el (url-http-wait-for-headers-change-function):
61 Defer detection of HTTP 0.9 until we have at least one line.
63 2006-11-10 Shun-ichi GOTO <gotoh@taiyo.co.jp> (tiny change)
65 * url-http.el (url-http-mark-connection-as-free)
66 (url-http-find-free-connection): Don't treat process with status
68 (url-http-async-sentinel): Request correct url.
70 2006-11-08 Magnus Henoch <mange@freemail.hu>
72 * url-http.el (url-http-handle-authentication): If there are
73 several authentication headers, use the strongest available
76 * url.el (url-retrieve-synchronously): Allow quitting when
79 2006-11-03 Shun-ichi GOTO <gotoh@taiyo.co.jp> (tiny change)
81 * url-http.el (url-http-handle-authentication): If there are
82 several authentication headers, use the first with a supported
85 2006-11-01 Magnus Henoch <mange@freemail.hu>
87 * url-http.el (url-http-create-request): Use buffer-local
88 equivalents of dynamically bound variables.
90 2006-10-29 Magnus Henoch <mange@freemail.hu>
92 * url-gw.el (url-open-stream): Really use asynchronous
93 connections (accidentally disabled during debugging).
95 2006-10-28 Magnus Henoch <mange@freemail.hu>
97 * url-http.el (url-http-parse-headers): Fix misplaced paren.
99 2006-10-27 Magnus Henoch <mange@freemail.hu>
101 * url-http.el (url-http-mark-connection-as-free): Verify that
102 connection is open before saving it.
103 (url-http-handle-authentication): Use url-retrieve-internal
104 instead of url-retrieve.
105 (url-http-parse-headers): Adapt to new callback interface.
106 (url-http): Handle non-blocking connections.
107 (url-http-async-sentinel): Create.
109 * url.el (url-retrieve): Update docstring for new callback interface.
111 (url-retrieve-internal): Move code from url-retrieve here.
113 * url-gw.el (url-open-stream): Use a non-blocking socket for
114 `native' gateway method, if available.
116 2006-10-16 Magnus Henoch <mange@freemail.hu>
118 * url-http.el (url-https-create-secure-wrapper):
119 Always use tls gateway method.
121 2006-10-12 Magnus Henoch <mange@freemail.hu>
123 * url-http.el (url-http-find-free-connection):
124 Handle url-open-stream returning nil.
126 2006-10-11 Magnus Henoch <mange@freemail.hu>
128 * url-https.el: Remove (clashes with url-http on 8+3 systems).
130 * url-http.el: Move contents of url-https.el here. Add autoloads.
132 2006-10-09 Magnus Henoch <mange@freemail.hu>
134 * url-parse.el (url-generic-parse-url): Handle URLs with empty
135 path component and non-empty query component. Untangle path,
136 query and fragment parsing code. Add references to RFC 3986 in
138 (url-recreate-url-attributes): Start query string with "?", not ";".
140 2006-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
142 * url-dav.el (url-dav-file-attributes): Simplify.
144 * url-http.el (url-http-head-file-attributes): Add device "info".
146 2006-09-18 Michael Olson <mwolson@gnu.org>
148 * url-methods.el (url-scheme-register-proxy): Handle case where
149 getenv returns an empty string for http_proxy. This prevents an
150 error when calling `format' later on.
152 2006-08-31 Diane Murray <disumu@x3y2z1.net>
154 * url-parse.el (url-recreate-url-attributes): New function, code
155 simply moved from `url-recreate-url'.
156 (url-recreate-url): Use it.
157 Put the `url-target' at the end of the URL after the attributes.
159 * url-http.el (url-http-create-request):
160 Use `url-recreate-url-attributes' when setting real-fname.
162 2006-08-29 Diane Murray <disumu@x3y2z1.net>
164 * url-cookie.el (url-cookie-write-file): Really don't use versioned
167 2006-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
169 * url-handlers.el (url-file-local-copy): Tell url-copy-file that the
170 dest file will already exist.
172 2006-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
174 * url-util.el (url-hexify-string): Only utf-8 encode if it's
176 (url-normalize-url): Remove unused var `grok'.
177 (url-truncate-url-for-viewing): Remove unused var `tail'.
179 2006-07-30 Thien-Thi Nguyen <ttn@gnu.org>
181 * url-util.el (url-hexify-string): Rewrite.
182 Suggested by David Smith <davidsmith@acm.org>.
184 2006-07-12 Michael Olson <mwolson@gnu.org>
186 * url-irc.el (url-irc-erc): Call erc-handle-irc-url.
188 2006-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
190 * url-cookie.el: Remove spurious * in docstrings.
191 (url-cookie-write-file): Don't use versioned backups.
192 (url-cookie-host-can-set-p): Remove unused var `tmp'.
194 2006-07-04 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de>
196 * url-cookie.el (url-cookie-save-interval): Move to url-cookie group.
197 (url-cookie-write-file): Reset url-cookies-changed-since-last-save.
199 2006-05-12 Reiner Steib <Reiner.Steib@gmx.de>
201 * url-http.el (url-http-file-exists-p): Test if status is integer.
203 2006-05-05 Andreas Seltenreich <seltenreich@gmx.de>
205 * url-http.el (url-http-parse-headers): Don't reuse connection if
206 "Connection: close" header was seen.
208 2006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
210 * url-gw.el (url-open-stream): Don't hide errors.
211 (url-gateway-nslookup-host, url-open-telnet): Use with-current-buffer.
213 * url-handlers.el (url-insert): New function.
214 (url-insert-file-contents): Use it.
216 2006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
218 * url-handlers.el (url-handler-directory-file-name): New handler.
219 (url-file-local-copy): Plug race condition security hole.
221 2006-03-27 Romain Francoise <romain@orebokech.com>
223 * url-irc.el (url-irc-rcirc, url-irc-erc): New functions.
224 (url-irc-function): Add rcirc and ERC to the list of IRC clients.
225 Default to rcirc, since ZenIRC isn't part of Emacs.
227 2006-03-07 Stefan Monnier <monnier@iro.umontreal.ca>
229 * url-http.el (url-http-find-free-connection): Fix braino in last fix.
231 2006-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
233 * url-http.el (url-http-find-free-connection): Don't kill the process
234 when killing the temp buffer.
235 (url-http-symbol-value-in-buffer): Massage to make it clear to the
236 byte-compiler that the function is defined.
238 2006-02-20 Stefan Monnier <monnier@iro.umontreal.ca>
240 * url.el (url-redirect-buffer): New var.
241 (url-retrieve-synchronously): Use it to follow redirections.
243 * url-http.el: Require `url' rather than try to autoload parts of it.
244 (url-http-find-free-connection): `url-open-stream' needs a real buffer.
245 (url-http-parse-headers): Set `url-redirect-buffer' when following
248 2006-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
250 * url-news.el: Move defvars out of eval-when-compile.
251 (url-news-fetch-message-id, url-news-fetch-newsgroup):
252 Use with-current-buffer.
254 2006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
256 * url.el (url-retrieve-synchronously): Adjust the workaround so as not
257 to stop in the middle of a redirection.
259 * url-vars.el (url-privacy-level): Add setter.
261 2006-01-05 Stefan Monnier <monnier@iro.umontreal.ca>
263 * url-history.el (url-history-hash-table): Initialize in declaration.
264 (url-history-parse-history): Don't reset the history.
265 (url-history-save-history): Create parent dir if necessary.
266 (url-history-save-history): Don't write the initialization of
267 url-history-hash-table into the history file.
268 (url-have-visited-url): Simplify since url-history-hash-table isn't nil.
269 (url-completion-function): Simplify.
271 * url-cookie.el (url-cookie-parse-file): Don't complain of missing file.
272 (url-cookie-parse-file, url-cookie-write-file, url-cookie-retrieve)
273 (url-cookie-generate-header-lines, url-cookie-handle-set-cookie)
274 (url-cookie-setup-save-timer): Remove autoload cookies.
275 They're only called from files that require url-cookie anyway.
277 * url-history.el (url-history-setup-save-timer)
278 (url-history-parse-history, url-history-save-history):
279 Remove autoload cookies. They're only called from url.el which requires
281 (url-history-parse-history): Don't complain if the file is missing.
283 2006-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
285 * url-handlers.el (url-retrieve-synchronously): Don't autoload.
287 * url.el (url-retrieve, url-retrieve-synchronously): Autoload.
289 * url-cache.el: Require `url'.
291 2005-12-27 Stefan Monnier <monnier@iro.umontreal.ca>
293 * url-cache.el (url-store-in-cache): Use save-current-buffer.
295 * url.el (url-configuration-directory): Don't autoload because the
296 default value needs to be computed at run-time, not dump-time.
298 2005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
300 * url-cookie.el (url-cookie-write-file): Create parent dir.
302 * url.el (url-configuration-directory): Use ~/.emacs.d if possible.
304 2005-12-07 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
306 * url-cookie.el (url-cookie-save-interval): Simplify.
307 (url-cookie-setup-save-timer): Simplify.
309 2005-12-04 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
311 * url-history.el (url-history-list): Var deleted.
312 (url-history-save-interval): Simplify.
313 (url-history-setup-save-timer): Simplify.
315 2005-12-01 Kim F. Storm <storm@cua.dk>
317 * url-history.el (url-history-track): Fix last change.
319 2005-12-01 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
321 * url-history.el (url-history-track):
322 Call url-history-setup-save-timer in :set function.
323 :type allows three alternatives.
324 (url-history-setup-save-timer): Test url-history-track.
325 * url.el (url-retrieve): Test url-history-track.
327 2005-11-18 Stefan Monnier <monnier@iro.umontreal.ca>
329 * url-http.el: Use with-current-buffer.
330 (url-http-target-url): Rename from url-http-cookies-sources.
331 (url-http-parse-headers): Use it.
332 (url-http-handle-authentication): Use subst-char-in-string.
334 2005-11-16 Juergen Hoetzel <emacs@hoetzel.info> (tiny change)
336 * url-handlers.el (url-insert-file-contents): Use the charset info
337 provided by the HTTP server, if any.
339 2005-10-20 CHENG Gao <chenggao@gmail.com> (tiny change)
341 * url-nfs.el (top level):
342 * url-handlers.el (directory-files):
343 * url-file.el (top level):
344 * url-dired.el (url-dired-minor-mode-map):
345 * url-http.el (url-http-chunked-encoding-after-change-function):
346 Remove XEmacs support.
348 2005-10-15 Richard M. Stallman <rms@gnu.org>
350 * url.el: Don't try to autoload hash table functions.
352 2005-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
354 * url-http.el (url-http-create-request): Avoid incorrect implicit
355 unibyte->multibyte conversion.
357 2005-09-17 Richard M. Stallman <rms@gnu.org>
359 * url-vars.el (url-mail-command): Don't test fboundp of `compose-mail'.
361 * url-mailto.el (url-mailto): Special case `mail'.
362 Don't test fboundp of `compose-mail'.
364 2005-09-15 Chong Yidong <cyd@stupidchicken.com>
366 * url-mailto.el (url-mailto): Delete mail buffer after sending
368 Call `compose-mail with `new' argument if possible.
370 2005-09-13 Chong Yidong <cyd@stupidchicken.com>
372 * url-mailto.el (url-mailto): Always use a new mail buffer.
374 2005-09-01 Chong Yidong <cyd@stupidchicken.com>
376 * url-util.el (url-parse-query-string): New optional argument
377 allow-newlines allows decoding of newlines.
379 * url-mailto.el (url-mailto): Allow newlines in URL arguments.
380 Don't lose original "to" value when there is a "to" header.
381 Remove carriage return characters in message body.
383 2005-08-24 Juanma Barranquero <lekktu@gmail.com>
385 * url-news.el (nntp-open-tls-stream, nntp-open-ssl-stream):
386 * url-http.el (url-http-cookies-sources): Defvar at compile time.
388 2005-07-15 Richard M. Stallman <rms@gnu.org>
390 * url-http.el (url-http-parse-headers): Add :redirect arg-pair
391 when calling url-retrieve, to indicate a redirect.
393 * url.el (url-retrieve): The callback function can get an additional
396 2005-07-04 Lute Kamstra <lute@gnu.org>
398 Update FSF's address in GPL notices.
400 2005-07-04 Juanma Barranquero <lekktu@gmail.com>
402 * url-history.el (url-history-track): Doc fix.
403 (url-history): Finish `defgroup' description with period.
405 * url-cookie.el (url-cookie):
406 * url-gw.el (url-gateway):
407 * url-news.el (url-news):
408 * url-vars.el (url, url-file, url-cache, url-mime, url-hairy):
409 Finish `defgroup' description with period.
411 2005-06-28 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
413 * url-http.el (url-http-create-request): Call url-recreate-url
416 2005-06-27 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
418 * url-http.el (url-http-create-request): When computing real-fname,
419 call url-filename in both cases.
421 2005-06-27 Richard M. Stallman <rms@gnu.org>
423 * url-cookie.el (url-cookie-store): Rename arg PATH to LOCALPART.
424 (url-cookie-retrieve): Likewise.
425 (url-cookie-generate-header-lines): Likewise.
426 (url-cookie-handle-set-cookie): Likewise.
427 (url-cookie-create): Expect :localpart instead of :path.
428 (url-cookie-localpart): Renamed from url-cookie-path.
429 (url-cookie-set-localpart): Renamed from url-cookie-set-path.
430 (url-cookie-file): Doc fix.
431 (url-cookie-p): Add doc string.
433 2005-06-23 Richard M. Stallman <rms@gnu.org>
435 * url-cookie.el (url-cookie-generate-header-lines): Fix autoload cookie.
437 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
439 * url-gw.el (url-open-stream):
440 * url-vars.el (url-gateway-unplugged): Fix spellings.
442 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
444 * url-history.el (url-completion-function): Follow error
447 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
449 * url-file.el (url-file, url-file-asynch-callback): with-current-buffer.
451 2005-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
453 * url-dav.el: Remove most autoload cookies.
454 Don't hook into the url-file-handler since it currently breaks all
457 * url-handlers.el (vc-registered): Explicitly disable VC for URL files.
459 * url.el (url-retrieve-synchronously): Don't exit precipitously when
460 fetching a file via ange-ftp.
462 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
464 * url-cookie.el (url-cookie-multiple-line): Fix spelling in docstring.
466 2005-05-19 Juanma Barranquero <lekktu@gmail.com>
468 * url-cookie.el (url-cookie-multiple-line):
469 Specify group and type in defcustom.
471 2005-05-06 Juanma Barranquero <lekktu@gmail.com>
473 * url-auth.el (url-register-auth-scheme):
474 * url-cookie.el (url-cookie-expired-p):
475 * url-dav.el (url-dav-process-date-property)
476 (url-dav-process-boolean-property, url-dav-process-DAV:status):
477 * url-http.el (url-http-chunked-encoding-after-change-function)
478 (url-http-wait-for-headers-change-function):
479 * url-ns.el (isInNet):
480 * url-parse.el (url-generic-parse-url):
481 * url-util.el (url-get-normalized-date): Replace `string-to-int'
482 by `string-to-number'.
484 2005-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
486 * url.el (url-retrieve-synchronously): Work around the fact that
487 url-http sometimes doesn't call the callback.
489 2005-04-04 Lute Kamstra <lute@gnu.org>
491 * url-handlers.el (url-handler-mode): Specify :group.
493 2005-02-26 James Cloos <cloos@jhcloos.com> (tiny change)
495 * url-history.el (url-have-visited-url): Don't barf if
496 url-history-hash-table is nil.
498 2005-02-14 Michael Welsh Duggan <md5i@cs.cmu.edu>
500 * url-http.el (url-http-parse-headers): Test url-automatic-caching.
502 2005-01-22 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
504 * url-http.el (url-http-parse-headers) <302>: Reset url-http-data
505 to nil, like for the 303 response.
507 2005-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
509 * url.el (url-retrieve-synchronously): Use accept-process-output rather
512 2005-01-03 Klaus Straubinger <ksnetz@arcor.de> (tiny change)
514 * url-http.el (url-http-handle-authentication):
515 Don't kill the current buffer.
517 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
519 * url-handlers.el: Don't `require' everything eagerly.
521 2004-11-30 Paul Pogonyshev <pogonyshev@gmx.net>
523 * url-http.el (url-http-handle-cookies): Bind `url-current-object'
524 to `url-http-cookies-sources' so that cookies are attributed to
526 (url-http): Make local variable `url-http-cookies-sources'.
528 2004-11-28 Andreas Schwab <schwab@suse.de>
530 * url-http.el (url-http-create-request): Don't add newline after
533 2004-11-20 Masatake YAMATO <jet@gyve.org>
535 * url.el (url-mm-callback): Delay the invocation
536 of `mm-destroy-parts'. Invoke `mm-destroy-parts'
537 when the buffer is killed.
539 2004-11-12 Masatake YAMATO <jet@gyve.org>
541 * url-mailto.el (url-mailto): Fix a typo in the comment.
543 2004-11-02 Masatake YAMATO <jet@gyve.org>
545 * url-imap.el (url-imap-open-host): Don't use
546 `string-to-int'. The port returned by `url-port'
547 is expected to be an integer.
549 * url-irc.el (url-irc): Ditto.
551 * url-news.el (url-news-open-host): Ditto.
553 * url-nfs.el (url-nfs-build-filename): Ditto.
555 2004-10-20 John Paul Wallington <jpw@gnu.org>
557 * url-gw.el (url-gateway-nslookup-host):
558 Use `set-process-query-on-exit-flag'.
560 2004-10-10 Lars Hansen <larsh@math.ku.dk>
575 * url-proxy.el: Update header and footer.
577 * url-vars.el: Update header.
579 2004-10-16 Richard M. Stallman <rms@gnu.org>
581 * url.el (url-do-setup): Don't set url-passwd-entry-func.
583 * url-vars.el (url-passwd-entry-func): Var deleted.
584 (mm-mime-mule-charset-alist): Remove compatibility code for old Gnus.
585 (url-weekday-alist): Rename from weekday-alist.
586 (url-monthabbrev-alist): Rename from monthabbrev-alist.
587 (url-vars-unload-hook): Initialize hook var to hold the function.
589 * url-util.el (url-get-normalized-date): Use url-weekday-alist and
590 url-monthabbrev-alist.
592 * url-misc.el: Load cl at compile time.
594 * url-mailto.el: Don't load cl.
595 (url-mailto): Fix call to `push'.
597 * url-gw.el (url-open-telnet): Use read-passwd.
599 * url-auth.el (url-basic-auth, url-digest-auth): Use read-passwd.
601 2004-10-12 Simon Josefsson <jas@extundo.com>
603 * url-vars.el (url-gateway-method): Add new method `tls'.
605 * url-news.el (url-snews): Use nntp-open-tls-stream if
606 url-gateway-method is tls.
608 * url-ldap.el (url-ldap-certificate-formatter):
609 Use tls-certificate-information if ssl.el is not available.
611 * url-https.el (url-https-create-secure-wrapper): Use tls if ssl
614 * url-gw.el (url-open-stream): Support tls url-gateway-method.
615 (url-open-stream): Likewise.
617 2004-10-10 Lars Hansen <larsh@math.ku.dk>
637 * url-util.el: Fix copyright notice.
639 2004-10-06 Stefan Monnier <monnier@iro.umontreal.ca>
641 * url-handlers.el (url-insert-file-contents): Use the URL to decide the
642 encoding, not the buffer-file-name (which might not even exist).
644 2004-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
646 * url-handlers.el (url-insert-file-contents): Decode contents.
648 2004-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
650 * url-util.el (url-debug): Use with-current-buffer.
652 * url-nfs.el (url-nfs-file-attributes): Add id-format parameter.
653 (url-nfs-create-wrapper): Use new backquote syntax.
655 * url-https.el (url-https-file-attributes): Add id-format param.
657 * url-http.el (url-http-head-file-attributes)
658 (url-http-file-attributes): Add id-format parameter.
660 * url-handlers.el: Use new find-file-hook.
661 (url-file-attributes): Add id-format parameter.
663 * url-file.el (url-file-create-wrapper): Use new backquote syntax.
664 (url-file-file-attributes): Add id-format parameter.
666 * url-dav.el: Use with-current-buffer.
667 (url-dav-process-response): Fix regexps and spurious quote.
668 (url-dav-file-attributes): Add id-format param.
670 2004-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
672 * url.el (url-retrieve): Use with-current-buffer.
674 * url-http.el (url-http-parse-headers, url-http-file-exists-p):
675 Remove unused var `version'.
677 * url-handlers.el (url-handler-mode): New minor mode.
678 (url-setup-file-name-handlers): Remove.
680 2004-04-12 John Paul Wallington <jpw@gnu.org>
682 * url-cookie.el (url-cookie-handle-set-cookie): Replace calls
683 to obsolete `assoc-ignore-case' with calls to `assoc-string'.
685 2004-04-11 Dave Love <fx@gnu.org>
687 * url-mailto.el (url-mailto):
688 * url-history.el (url-history-setup-save-timer):
689 * url-cookie.el (url-cookie-setup-save-timer): Avoid warnings.
691 * url-file.el (url-file-build-filename): Don't use
694 * url-auth.el (url-register-auth-scheme): Fix `format' call.
696 * url-about.el (url-scheme-registry): Defvar.
697 (url-about): Use text/plain.
699 * url-vars.el (cl): Don't require.
701 (url-bug-address): Use bug-gnu-emacs.
703 * url-util.el (url-hexify-string): Don't give multibyte error
705 (mail-header-extract): Autoload.
707 * url-parse.el: Doc fixes.
709 * url-ldap.el (ldap): Require.
710 (url-ldap): Fix `format' call.
711 (url-ldap-certificate-formatter): Avoid warning.
713 * url-https.el (url-https-create-secure-wrapper): Use modern backquotes.
715 * url-dav.el (url-dav-rename-file): Fix args of `signal'.
716 (url-intersection): New.
717 (url-dav-supported-p): Use it.
718 (url-dav-save-resource): Declare url-http-response-status special.
720 * url-cache.el (url-util): Require.
722 2004-04-10 Miles Bader <miles@gnu.org>
724 RCS keyword removal (only non-comment changes are enumerated here):
726 * url-vars.el (url-version): Use the constant string "Emacs"
727 instead of calculating something from the RCS `State' keyword
728 [the latter is almost entirely useless anyway].
730 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
733 * url-parse.el: Don't require url-auto.
735 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
737 * url: Imported the URL package from its own CVS repository into Emacs.
739 ===========================================================================
740 ===========================================================================
741 Copy of the ChangeLog file from URL's own CVS repository:
742 ===========================================================================
743 ===========================================================================
745 2003-07-16 Dave Love <fx@gnu.org>
747 * lisp/url.el (url-retrieve-synchronously): Revert last change.
750 2003-06-26 Sam Steingold <sds@gnu.org>
752 * lisp/url-handlers.el (url-handlers-create-wrapper): Do not call
753 method on invalid urls.
755 2003-05-29 Dave Love <fx@gnu.org>
757 * lisp/url.el (url-retrieve-synchronously): Use sleep-for, not
758 sit-for. From monnier@gnu.org.
760 2002-11-04 Walter C. Pelissero <walter@pelissero.org>
762 * lisp/url-methods.el (url-scheme-register-proxy): Make sure to convert
763 port numbers to integers when creating the URL objects for proxies.
765 2002-10-29 William M. Perry <wmperry@gnu.org>
767 * lisp/url-http.el (url-http-parse-headers): When doing a
768 redirect, some broken software (sourceforge) sends a redirect to
769 '/', which is blatantly illegal (see section 14.30 of the HTTP/1.1
770 specification). I wish we could deal with such lame software
771 appropriately (spank the authors), but this is the web, so we have
772 to kow-tow to the servers.
774 2002-10-27 William M. Perry <wmperry@gnu.org>
776 * lisp/url-http.el (url-http-create-request): If we are talking to
777 the default port for a the selected protocol, do NOT send the port
778 in the HOST header. This fixes the login page at sourceforge.
780 2002-09-17 William M. Perry <wmperry@gnu.org>
782 * lisp/url-http.el (url-http-handle-cookies): New function to deal
784 (url-http-parse-headers): Call `url-http-handle-cookies' here so
785 that cookie additions and deletions get handled immediately.
786 This is so that sites that set cookies while doing redirects
787 (my.yahoo.com, outlook web access, etc) work. This should also
788 fix sites that delete cookies on invalid access or other error
789 pages the user might not actually see.
790 (url-http-parse-headers): Silently convert non-HEAD and non-GET
791 methods to GET in redirects. Too many web sites do this now, and
792 it is just likely to confuse users.
794 2002-05-17 Dave Love <fx@gnu.org>
796 * texi/url.txi: Start making it vaguely useful.
798 * texi/Makefile.in (install): Cope with Debian install-info.
799 From Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann).
801 2002-04-22 Dave Love <fx@gnu.org>
803 * lisp/url-misc.el (man): Autoload to avoid warning.
804 (url-man): Don't require man here.
805 (url-data): Generalize in line with the RFC.
807 * lisp/url-gw.el (url-open-stream): Remove obsolete `tcp' case.
809 * lisp/url-vars.el: Doc fixes.
810 (url-mime-charset-string): New function.
811 (url-mime-charset-string): Use it to set the variable.
812 (url-set-mime-charset-string): New function.
813 (set-language-environment-hook): Use it.
814 (url-vars-unload-hook): New function.
816 * lisp/url-cookie.el (url-header-comparison): Delete.
817 (url-cookie-handle-set-cookie): Use assoc-ignore-case to avoid assoc*.
818 (url-cookie-save-interval): Make value agree with doc.
820 * lisp/url.el: Doc fixes.
821 (url-mm-callback): Don't call mm-destroy-parts immediately for
822 external viewing -- set up a process sentinel.
824 2002-02-02 William M. Perry <wmperry@gnu.org>
826 * lisp/Makefile.in (SOURCES): Remove mule-sysdp.el from the build rules.
828 2001-12-12 William M. Perry <wmperry@gnu.org>
830 * lisp/url-vars.el (url-nonrelative-link): Patch from Stefan
831 Monnier to use ` instead of ^ to match the relative link.
833 2001-12-10 William M. Perry <wmperry@gnu.org>
835 * lisp/url-dav.el (url-dav-file-attributes): Fix bad call to
836 plist-get (reversed args).
838 * lisp/url-file.el (url-file-build-filename): Make sure that we
839 have a parsed URL in this function.
841 2002-01-22 Dave Love <fx@gnu.org>
843 * lisp/url-cache.el (url-cache-file-writable-p): Doc fix.
845 * lisp/url-imap.el (url-imap): Maybe disable multibyte.
846 Bind coding-system-for-read. Require mm-util.
848 * lisp/url.el (url-do-setup): Use (featurep 'xemacs).
850 * lisp/mule-sysdp.el: Removed (obsolete).
852 2001-12-09 William M. Perry <wmperry@gnu.org>
854 * lisp/url-dav.el (url-dav-delete-something): Utility macro to
855 remove an arbitrary resource.
856 (url-dav-delete-directory): Use it.
857 (url-dav-delete-file): Ditto.
858 (url-dav-make-directory): New function.
859 (url-dav-rename-file): New function.
860 (url-dav-register-handler): New function to easily register a
861 WebDAV-specific file-name-handler operation.
862 (url-dav-file-name-all-completions, url-dav-file-name-completion):
863 New functions that allow file-name completion for WebDAV resources.
865 2001-12-08 William M. Perry <wmperry@gnu.org>
867 * lisp/url-dav.el (url-dav-directory-files): New function to
868 mimic `directory-files' for WebDAV.
869 (url-dav-delete-directory): New function to mimic
870 `delete-directory' for WebDAV.
872 2001-12-06 William M. Perry <wmperry@gnu.org>
874 * lisp/url-dav.el (url-dav-process-DAV:locktoken): Parse the
875 DAV:locktoken hrefs into a usable format.
876 (url-dav-process-response): Use an unwind-protect to make sure
877 that we clean up the buffer, even if there is a parsing error.
878 (url-dav-request): New function to act as the main entry point for
879 making DAV requests. Takes care of building the XML document with
880 appropriate namespaces, depth, etc, and parses the results.
881 (url-dav-get-properties): Use new url-dav-request function.
882 This is now just a thin wrapper around that to use PROPFIND and set any
883 extra properties we are looking for.
884 (url-dav-unlock-resource): New function to release a lock given a
885 URL and a lock-token.
886 (url-dav-process-DAV:getlastmodified)
887 (url-dav-process-DAV:creationdate)
888 (url-dav-process-DAV:iscollection)
889 (url-dav-process-DAV:ishidden): Fix typos! Its url-dav-*, not
891 (url-dav-active-locks): New function to get a list of all the
892 active locks for a resource.
893 (url-dav-save-resource): New function to actually save a resource
894 using the PUT method. I can now successfully save files to an
895 HTTP server with some manual steps from a lisp-interaction buffer.
897 * lisp/url-http.el (url-http-wait-for-headers-change-function):
898 Special case the 204/205 response codes. Some servers do not
899 send back a 0 content-length for these, and we would hang.
900 (url-http-parse-headers): Mark 204/205 response codes as
901 'successful' so that the callbacks get activated.
902 (url-http-options): Fix unbound variable usage.
904 * lisp/url-dav.el: Added full copyright information.
905 (url-dav-process-response): Make sure that we create a DAV:status
906 property when parsing a singleton response.
907 (url-dav-file-attributes): If the properties returned did not have
908 a succesful HTTP response code, then ignore them and use the
909 HEAD-based attributes.
911 * lisp/vc-dav.el: Added full copyright information.
913 * lisp/url-dav.el (url-dav-process-supportedlock-property):
914 Deal with text nodes in DAV:supportedlock nodes.
915 (url-dav-file-attributes-mode-string): This now gets the entire
916 property list instead of just the DAV:supportedlock node.
917 (url-dav-file-attributes): Make sure to pass the whole list in.
918 (url-dav-file-attributes-mode-string): Now properly sets do 'd' mode.
919 (url-dav-file-attributes-mode-string): Now uses the Apache mod_dav
920 'executable' bit to set the 'x' mode. See `mod_dav's custom
921 properties' at http://www.webdav.org/mod_dav/ for more details.
922 (url-dav-find-parser): New function to find the proper parser for
923 a node-type. Looks for
924 url-dav-process-XXX (url-dav-process-DAV:prop), otherwise falls
925 back to using url-dav-node-text. Caches the results on the nodes
927 (url-dav-dispatch-node): Utility routine to call a nodes handler easily.
928 (url-dav-process-*): Rename most of the handlers and made them
929 use url-dav-dispatch-node where appropriate.
930 (url-dav-process-DAV:prop): Instead of using the dav-data-type
931 property to dispatch the node, now uses dav-dispatch-node so that
932 it is easy to add parsers for special nodes.
933 (url-dav-process-DAV:depth, url-dav-process-DAV:resourcetype)
934 (url-dav-process-DAV:locktype, url-dav-process-DAV:lockscope)
935 (url-dav-process-DAV:getcontentlength)
936 (url-dave-process-DAV:getlastmodified)
937 (url-dave-process-DAV:creationdate)
938 (url-dave-process-DAV:iscollection)
939 (url-dave-process-DAV:ishidden): Aliases for the generic
940 url-dav-process-foo-property routines.
941 (url-dav-process-DAV:activelock)
942 (url-dav-process-DAV:lockdiscovery): Can now correctly parse
943 DAV:lockdiscovery nodes, so that we can find out who has a
944 resource locked and properly parse the reponse to a LOCK request.
945 (url-dav-process-DAV:status): Now parses ou the numeric status
946 from the HTTP response line.
947 (url-dav-process-response): New function to handle all the
948 parsing of an XML response from WebDAV. This handles all the
949 logic of checking the response content-type to make sure it is
950 XML, parses the tree, and interprets the tree.
951 (url-dav-process-response): Make sure that all responses look
952 like a DAV:multistatus response, even if we get a singleton
953 response back. This will just make the upper layer logic simpler.
954 (url-dav-get-properties): New optional argument NAMESPACES that
955 specifies what namespaces to use in the XML request.
956 (url-dav-get-properties): Got rid of the D: namespace in
957 requests. It doesn't save that much space. Just use DAV:
958 (url-dav-lock-identifier): New variable that should hold a URI
959 pointing to contact information for the user. This will be used
960 as the contents of the DAV:owner/DAV:href tag to identify the
961 owner of a LOCK when requesting it. This will be shown to other
962 users when the DAV:lockdiscovery property is requested, so make
963 sure you are comfortable with it leaking to the outside world.
964 (url-dav-lock-resource): New function to LOCK a dav resource.
966 2001-12-05 William M. Perry <wmperry@gnu.org>
968 * lisp/url-dav.el (url-dav-get-properties): New argument
969 ATTRIBUTES that allows you to ask for specific properties instead
970 of getting all properties via DAV:allprop.
972 * lisp/url-http.el (url-http-real-basic-auth-storage):
973 New variable for normal HTTP basic authentication.
974 (url-http-proxy-basic-auth-storage): New variable for HTTP proxy
975 basic authentication.
976 (url-http-handle-authentication): Follow new semantics for
977 url-basic-auth-storage.
979 * lisp/url-auth.el (url-basic-auth-storage): Change meaning of
980 this variable. It is now a symbol pointing to where we really
981 want to store the authorization information. This fixes proxy
982 auth and normal basic auth because of some local bindings that were
983 making it impossible to store the credentials in the global binding.
984 (url-basic-auth): Make sure we dereference url-basic-auth-storage
987 * lisp/url-util.el (url-debug): Add new types 'dav and
988 'retrieval to the customization list.
990 * lisp/url.el (url-retrieve-synchronously): Put in some debugging
993 * lisp/url-http.el (url-http-head-file-attributes): Rename old
994 url-http-file-attributes so that we can have a smarter one that
995 tries WebDAV first, then HEAD.
996 (url-http-file-attributes): New smart version that tries WebDAV first.
997 (url-http-options): New function that returns information gleaned
998 from an OPTIONS request for a URL. Returns a property list
999 returning the methods supported for the resource, what DAV and
1000 DASL levels are supported, p3p information, and whether
1001 byte-ranges are supported or not.
1002 (url-http-wait-for-headers-change-function): If we got a 0-byte
1003 content-length, activate the callback immediately.
1004 (url-http-wait-for-headers-change-function): For content-length
1005 responses with actual body-data in the chunk we are handling, call
1006 url-http-content-length-after-change-function with the remaining
1007 data. Otherwise we can deadlock if the headers and the entire
1008 body exist arrive in one chunk.
1010 * lisp/url-dav.el: New file to contain the WebDAV
1011 (http://www.webdav.org/) implementation.
1012 (url-dav-supported-p): Cheap way to figure out whether we will be
1013 able to do DAV at all. We rely on the XML parser expanding
1014 namespaces for us, and currently you need a patched version of
1015 xml.el to do this. Patch sent to author for consideration.
1016 (url-dav-file-attributes): Much more complete version of
1017 `file-attributes' using the WebDAV PROPFIND method. Now correctly
1018 finds out whether something is a directory (a WebDAV collection),
1019 the last modification time, and permissions (based on the
1020 DAV:supportedlock information).
1021 (url-dav-get-properties): Generic interface to get WebDAV
1022 properties for a URL. Can specify an optional `depth' parameter
1023 to tell the web server how many directory (collection) levels to
1024 recurse when retrieving the property lists. Returns an assoc
1025 list keyed off of the resource, the cdr of which is a property list.
1026 (url-dav-datatype-attribute): We support the XML-Data note
1027 (http://www.w3.org/TR/1998/NOTE-XML-data) to figure out what the
1028 datatypes of attributes are. Currently only date, dateTime, int,
1029 number, float, boolean, and uri are supported.
1031 2001-12-04 William M. Perry <wmperry@gnu.org>
1033 * lisp/url-handlers.el (file-name-absolute-p): New hooked
1034 version. If the filename matches our regexp, then it is always
1035 absolute, so just return `t'.
1036 (expand-file-name): New hooked version. If the fragment is an
1037 absolute file or URL, then expand it relative to '/'.
1038 (url-handler-regexp): New regexp for specific schemes that we
1039 want the file-name-handlers to work off of.
1040 (url-setup-file-name-handlers): Use it when installing the handlers.
1042 * lisp/url-http.el (url-http-find-free-connection): Better logging
1043 about whether we are reusing an existing connection or not.
1045 * lisp/url-methods.el (url-scheme-register-proxy): Fix bad call
1046 to string-match instead of match-string (and with reversed
1049 * lisp/url-http.el (url-http-debug): Change to now use the
1050 generic url-debug function to do the actual logging. Still a
1051 separate function so that we can do our magic on the network
1052 connection if the user quits while we are downloading.
1054 * lisp/url-handlers.el (url-file-handler): Now logs the result of
1055 the hooked or real call.
1057 * lisp/url-util.el (url-debug): New function for generic debug logging.
1059 2001-11-28 William M. Perry <wmperry@gnu.org>
1061 * lisp/url-imap.el (url-imap-open-host): Use backquote.
1062 (url-imap): Now switches to 'login as the imap authenticator if
1063 the URL provides a username and password.
1065 * lisp/url-handlers.el (url-setup-file-name-handlers): Use cl &
1066 push to replace some strange logic in here.
1067 (url-run-real-handler): New function to run the real hooks in
1068 case we get a false positive or an operation that we do not
1069 support. The old way disabled _ALL_ file-name-handlers when
1070 we hit something we didn't understand - this disables JUST us.
1071 (url-file-handler): Remove the logic about removing the leading
1072 '/' off of the first argument... it may not be safe to always
1073 assume that the first argument is the one we are acting on -
1074 `default' is the second argument for expand-file-name for example.
1075 (url-setup-file-name-handlers): Use url-nonrelative-link
1076 directly. This means that you must type in the URL directly
1077 without prefixing it with a '/'.
1079 (gnus-cache-articles-in-group "nnml+mail:comp.emacs-devel")
1081 Ends up calling (expand-file-name "nnml+mail:comp.emacs-devel" ...)
1082 which activates us (because 'nnml+mail' _is_ a valid scheme name
1083 for a URI). We get thoroughly confused and end up returning
1084 `nil' when we shouldn't.
1086 2001-11-26 William M. Perry <wmperry@gnu.org>
1088 * lisp/url-handlers.el (file-writable-p): Add NULL handler for
1089 this so that visiting a URL directly will work.
1090 (file-symlink-p): Ditto.
1091 (url-insert-file-contents): If `visit' is non-nil then make sure
1092 we set buffer-file-name. After these changes you can visit
1093 http://www.gnu.org/ directly from the minibuffer.
1094 (url-insert-file-contents): When inserting the file contents,
1095 use a save-excursion so that we behave just like the original.
1097 2001-11-25 William M. Perry <wmperry@gnu.org>
1099 * lisp/url-util.el (url-hexify-string): Fix bad use of mapconcat.
1101 2001-11-24 William M. Perry <wmperry@gnu.org>
1103 * lisp/url-about.el (url-about): New loader scheme to handle
1104 about:foo URLs. Automatically tries to find a `url-about-foo'
1105 function to display the actual data.
1106 (url-about-protocols): Implement about:protocols
1108 * lisp/url-http.el (url-http): Make sure that we signal an error
1109 when we cannot open a network connection for whatever reason.
1110 Before, it would just silently clean up after itself and the user
1111 got absolutely no indication that an error had occured. If the
1112 error should truly be ignored, the caller should do that for us.
1113 (url-http-chunked-encoding-after-change-function): Doh! Need to
1114 user marker-position in some log messages now that
1115 url-http-chunked-start is a marker.
1117 2001-11-22 William M. Perry <wmperry@gnu.org>
1119 * lisp/url-https.el: Fixed definition of url-https - was using the
1120 wrong signature. Too much cut & paste.
1121 (url-https-create-secure-wrapper): Fix so that url-https works
1122 at all. Was not taking a null `method' into account when calling
1123 the wrapped function so url-https tried to call url-http-nil. *sigh*
1126 (url-http-chunked-encoding-after-change-function): Add some
1127 feedback when not debugging about what content-type and chunk # we
1129 (url-http-chunked-encoding-after-change-function): Use a marker
1130 for url-http-chunked-start so that we can safely delete the
1131 chunk-tokens instead of just marking them as invisible.
1132 (url-http-chunked-encoding-after-change-function): Actually delete
1133 the chunk-tokens. Now that we are not run from 'real'
1134 after-change functions, this is safe, and the right thing to do.
1135 Otherwise the HTML parser still saw them and inferred all sorts of
1136 bad things about the document (ie: nothing had a title!)
1138 2001-11-21 William M. Perry <wmperry@gnu.org>
1140 * lisp/url-http.el (url-http-debug): Document this variable.
1141 People other than I might want to use it.
1142 (url-http-debug): Put some code in here to check quit-flag
1143 directly. When the chunked encoding went into a tight spin, your
1144 Emacs would be wedged forever. This short-circuits all the
1145 after-change functions and signals an error.
1146 (url-http-debug): If url-http-debug is non-nil and non-t, then log
1147 the debug messages using `message' as well as sending them to the
1149 (url-http-chunked-encoding-after-change-function): Got rid of the
1150 no-initial-crlf. Had an epiphany and I can just infer this from
1151 url-http-chunked-counter being 0.
1152 (url-http-chunked-encoding-after-change-function): Move the debug
1153 statement about reading chunk #foo into the loop so that each
1154 chunk will have a log message associated with it.
1155 (url-http-chunked-encoding-after-change-function): Make sure to
1156 set read-next-chunk to nil when the regular expression match fails
1157 to fire. Otherwise we could loop forever.
1158 (url-http-chunked-encoding-after-change-function): Tweak the
1159 regular expression to be a little less greedy when looking for a chunk.
1160 (url-http-wait-for-headers-change-function): Remove the last
1161 argument when calling
1162 url-http-chunked-encoding-after-change-function. It is no longer
1163 needed. I should use my brain sometime.
1165 * lisp/url-vars.el (and): Fix feature test for xemacs and
1166 coding-system-list behaviour.
1169 (url-http-chunked-encoding-after-change-function): Add optional
1170 no-initial-crlf flag that modifies the regular expression.
1171 This is only set from url-http-wait-for-headers-change-function so that
1172 the initial CRLF in the HTTP headers is not swallowed.
1173 (url-http-chunked-encoding-after-change-function): Fix a few
1174 off-by-one errors by using (match-end 0) instead of 1.
1175 (url-http-chunked-encoding-after-change-function): Add a few
1176 url-http-debug calls to help track down problems in the chunked
1178 (url-http-chunked-encoding-after-change-function): The chunk
1179 reading in here is now in a while loop so that if Emacs feeds us a
1180 chunk of data that happens to contain more than one 'chunk'
1181 delimiter, we behave correctly.
1182 (url-http-wait-for-headers-change-function): Make sure that we
1183 pass no-initial-crlf to
1184 url-http-chunked-encoding-after-change-function when passing
1185 initial data to the decoder.
1186 (url-http-generic-filter): url-http-debug statement so we can tell
1187 when/where our after-change-functions are being called.
1189 2001-10-11 Dave Love <fx@gnu.org>
1191 * lisp/url-handlers.el: Doc fixes.
1192 (string-match): Use (featurep 'xemacs).
1194 * lisp/url-methods.el (url-scheme-get-property): Avoid `mapc'.
1196 * lisp/url-proxy.el (url-find-proxy-for-url): Avoid `pop'.
1198 * lisp/url-vars.el (url-running-xemacs): Delete.
1199 (url-gateway-unplugged): New variable.
1201 * lisp/url-gw.el (url-open-stream): Use url-gateway-unplugged.
1202 Comment out OS/2 stuff.
1204 2001-10-05 Dave Love <fx@gnu.org>
1206 * lisp/url-mailto.el (url-mailto): Don't send auto-generated mail
1207 without confirmation.
1209 2001-10-02 Dave Love <fx@gnu.org>
1211 * lisp/url-http.el (url-http-create-request): Check cache for
1212 proxy-obj, if defined, rather than url.
1213 (url-http): Use dolist, not mapc (runtime cl dependency).
1215 * lisp/url-methods.el: Maybe require cl at runtime.
1216 (url-scheme-register-proxy): Fix fetching from environment.
1217 Don't concat a number.
1219 2001-10-01 Dave Love <fx@gnu.org>
1221 * lisp/url-parse.el: Use modern backquote syntax.
1223 * lisp/url-vars.el (url-uncompressor-alist): Add bzip2.
1224 (url-mail-command): Prefer compose-mail.
1225 (tcp-binary-process-input-services): Comment out.
1226 (url-working-buffer): New constant.
1228 * lisp/url-util.el (url-extract-mime-headers): New function.
1230 * lisp/url-mailto.el (url-mailto): Set source-url. Don't add
1233 2001-09-20 Dave Love <fx@gnu.org>
1235 * lisp/url-http.el (url-http-create-request): Don't concat a number.
1237 2001-06-05 Dave Love <fx@gnu.org>
1239 * lisp/url.el (url-do-setup): Doc fix. Don't try to frob
1240 tcp-binary-process-input-services. Remove function wrapper for lambda.
1241 (url-retrieve): Barf with sensible message if url-type is null.
1243 * lisp/url-http.el (url-http): Don't try to set process
1244 coding-system here -- done in url-gw.
1246 * lisp/url-gw.el (url-gw-inhibit-code-conversion): Remove.
1247 (url-open-stream): Bind coding-system-for{read,write} when setting
1248 up the connexion. Don't call url-gw-inhibit-code-conversion.
1250 2001-05-24 William M. Perry <wmperry@gnu.org>
1252 * lisp/url.el (url-retrieve-synchronously): Avoid accept-process-output
1253 in url-retrieve-synchronously.
1255 2001-05-23 William M. Perry <wmperry@gnu.org>
1257 * lisp/url.el (url-retrieve-synchronously): Don't put a timeout on
1258 accept-process-output. This is evidently causing hangs in Emacs
1259 21 when viewing complex pages with images or stylesheets.
1260 www.yahoo.com is now viewable.
1262 * lisp/url-gw.el (url-open-stream): Avoid using mule-sysdp
1263 (mule-inhibit-code-conversion) and just have a local function that
1264 does this minimal cruft.
1265 (url-gw-inhibit-code-conversion): New function to turn off code
1266 conversion in a process.
1268 2001-05-22 William M. Perry <wmperry@gnu.org>
1270 * lisp/url.el (url-retrieve-synchronously): Use lexical-let so
1271 that we can allow multiple asynch retrievals to happen at once.
1272 (url-retrieve-synchronously): Use a much smaller timeout when
1273 doing the accept-process-output. This gets rid of the long delays
1274 if you are on a fast net connection and retrieve small documents
1275 that finish asynchronously before the first accept-process-output
1276 can be run. All hail broadband and 100Mb in the house!
1277 (url-retrieve-synchronously): Add documentation for this function.
1278 (url-retrieve): Ditto.
1279 (url-mm-url): Ditto.
1281 * lisp/url-vars.el: Replaced `HTTP/1.0' with just `HTTP' in some
1282 documentation strings. Ok, so I'm anal.
1284 * lisp/url-methods.el (url-scheme-methods): Add default methods
1285 for file-directory-p and file-truename.
1287 2001-05-22 Dave Love <fx@gnu.org>
1289 * lisp/url-auth.el (url-warn): Autoload.
1291 * lisp/url-proxy.el (url-warn): Autoload.
1293 * lisp/url-nfs.el: Fix `file-truname' typo.
1295 * lisp/url-news.el: Require cl when compiling.
1296 (url-warn, gnus-group-read-ephemeral-group): Autoload.
1297 (url-nntp-default-port, url-news-default-port, url-nntp): Delete.
1298 (url-news-fetch-newsgroup): Declare gnus-group-buffer special.
1300 * lisp/url-util.el (mule-decode-string): Don't autoload.
1301 (url-hexify-string): Just barf on multibyte characters.
1302 (url-generate-unique-filename): New function.
1304 * lisp/url-file.el (url-file): Use url-generate-unique-filename,
1305 not mm-generate-unique-filename.
1307 * lisp/url-http.el: Declare things special in various places.
1308 (url-http-activate-callback): Don't set
1309 url-http-real-after-change-function.
1311 2001-05-22 William M. Perry <wmperry@gnu.org>
1313 * lisp/url-http.el (url-http-attempt-keepalives): New variable to
1314 control whether we try to do keep-alives for our connections.
1315 (url-http-version): New variable to control whether we advertise
1316 ourselves as an HTTP/1.1 client or not. This can be useful for
1317 avoiding chunked encoding, and other 1.1 features we may not have
1318 fully implemented yet.
1319 (url-http-create-request): Honor the new variables.
1321 2001-05-21 Dave Love <fx@gnu.org>
1323 * lisp/url-vars.el (mm-mime-mule-charset-alist): Don't readjust it
1325 (url-mime-charset-string): Don't reverse the list before sorting.
1327 2001-05-17 William M. Perry <wmperry@gnu.org>
1329 * lisp/url-http.el (url-http-generic-filter): Avoid using
1330 after-change-functions natively. There are just too many ways
1331 that this screws up in Emacs 21. Use a filter function on the
1332 process instead, and call the hook on
1333 url-http-after-change-function manually. [Actually, it will work
1334 in Emacs 21, but one problem that has been fixed in Emacs 21
1335 exists in Emacs 20. -- fx]
1337 * lisp/url-vars.el (url-mime-charset-string): sort-coding-systems
1338 does not exist on older versions of Emacs, or any version of
1339 XEmacs. Do not call it unless it is bound.
1341 2001-05-17 Dave Love <fx@gnu.org>
1343 * lisp/url-http.el (url-http-create-request): Fix non-GET requests.
1345 2001-05-16 Dave Love <fx@gnu.org>
1347 * lisp/url-vars.el: Doc fixes. Require mm-util.
1348 (url-mime-charset-string): New variable.
1350 * lisp/url-http.el: Doc fixes.
1351 (url-http-create-request): Rearrange how we assemble the request.
1352 Avoid generating bogus requests with an empty real-fname.
1353 (url-http-handle-authentication): Declare status and success special.
1354 (url-http): Call mm-disable-multibyte. Set process buffer's
1355 coding systems to binary.
1357 * lisp/url-misc.el (url-data): Call mm-disable-multibyte.
1359 * lisp/url-file.el: Don't require mule-sysdp. Fix `file-truname' typo.
1360 (url-file-find-possibly-compressed-file): Doc fix.
1361 (url-file): Bind coding-system-for-read. Call mm-disable-multibyte.
1363 * lisp/url-cache.el: Don't require mule-sysdp.
1364 (url-store-in-cache): Avoid mule-write-region-no-coding-system.
1366 * lisp/url.el: Don't require mule-sysdp.
1367 (url-retrieve): Only set text properties if url is a string.
1369 2001-05-14 Dave Love <fx@gnu.org>
1371 * lisp/url-http.el (url-http-create-request):
1372 Declare proxy-object, proxy-info special.
1373 (url-http-handle-authentication): Declare success special.
1375 2001-05-12 Dave Love <fx@gnu.org>
1377 * lisp/url-http.el: Revert last change.
1379 2001-05-10 Dave Love <fx@gnu.org>
1381 * lisp/url-http.el (url-http-generic-after-change-function):
1382 Make it permanent-local.
1384 2001-05-05 Dave Love <fx@gnu.org>
1386 * lisp/url-http.el: Autoload some functions.
1387 (cl): Require when compiling.
1388 (url-http-extra-headers): Defvar when compiling.
1389 (url-http): Treat after-change-functions as a local hook.
1391 * lisp/url-history.el (url-parse): Require.
1392 (url-do-setup): Autoload.
1394 * lisp/url-gw.el: Require url-vars. Autoload some functions.
1396 * lisp/url-file.el: Require mailcap. Require cl when compiling.
1397 Use (featurep 'xemacs).
1398 (url-file-build-filename): Bind pos-index.
1399 (url-file): Call url-find-file-dired, not url-dired-find-file.
1401 * lisp/url-dired.el: Add copyright notice. Autoload some functions.
1402 (url-dired-minor-mode-map): Use (featurep 'xemacs).
1403 (url-dired-find-file-mouse): Use mouse-set-point, not event-point.
1404 (url-find-file-dired): Rename from one version of url-dired-find-file.
1406 * lisp/url-cid.el: Don't require widget. Require mm-decode
1409 * lisp/url-util.el: Autoload mule-decode-string,
1410 timezone-parse-date, timezone-make-date-arpa-standard.
1411 (url-unreserved-chars): Fix list per RFC 2396.
1412 (url-hexify-string): Maybe string-make-unibyte.
1414 * lisp/url-news.el: Require nntp.
1416 * lisp/url-imap.el: Require cl when compiling. Require nnimap
1419 2001-05-04 Dave Love <fx@gnu.org>
1421 * lisp/url-handlers.el (url-file-local-copy): Use make-temp-file,
1422 not non-existent mailcap-generate-unique-filename.
1424 * lisp/url-privacy.el: Require url-vars. Require cl when compiling.
1426 * lisp/url-parse.el: Require url-vars.
1427 Autoload url-scheme-get-property.
1429 * lisp/url-nfs.el: Require cl when compiling. Test for XEmacs
1432 * lisp/url-mailto.el: Require cl when compiling.
1434 * lisp/url-cookie.el (url-cookie-handle-set-cookie):
1435 Call url-parse-args, not url-util-parse-args.
1437 * lisp/url-cache.el (url-cache-expired): Remove bogus `return'.
1439 2001-04-09 Dave Love <fx@gnu.org>
1441 * lisp/mule-sysdp.el (mule-detect-coding-version)
1442 (mule-code-convert-region, mule-inhibit-code-conversion)
1443 (mule-write-region-no-coding-system, mule-encode-string)
1444 (mule-decode-string, mule-truncate-string)
1445 (mule-find-charset-region, mule-coding-system-name)
1446 (mule-find-coding-system, mule-make-iso-character): Grok Mule 5.0.
1447 [There must be a better way.]
1448 (mule-coding-system-p, string-width): Use defalias.
1450 2001-01-03 Sam Steingold <sds@gnu.org>
1452 * lisp/url-http.el (url-http-wait-for-headers-change-function):
1453 set `url-http-end-of-headers' to 0 for HTTP 0.9
1455 2001-01-02 Sam Steingold <sds@gnu.org>
1457 * lisp/url-auth.el (provide): `url-auth', not `urlauth'
1459 2000-12-22 Dave Love <fx@gnu.org>
1461 * lisp/url-history.el (url): Don't require (to avoid recursion).
1462 (cl): Require when compiling.
1464 * lisp/url-http.el (url-auth): Require.
1465 (url-http-handle-authentication): Fix typo.
1467 * lisp/url-cookie.el (url-cookie-setup-save-timer): Fix typo.
1469 2000-12-20 Dave Love <fx@gnu.org>
1471 * lisp/url.el: Require mm-decode, mm-view when compiling.
1472 <not (fboundp 'puthash)>: Define puthash and
1473 autoload other has functions rather than using cl-...hash.
1476 * lisp/url-ns.el, lisp/url-methods.el, lisp/url-http.el:
1477 Avoid cl-...hash functions.
1479 * lisp/url-history.el: Avoid cl-...hash functions.
1482 * lisp/url-gw.el, lisp/url-cookie.el: Require cl only when compiling.
1484 2000-10-03 William M. Perry <wmperry@aventail.com>
1486 * lisp/url-util.el (url-get-url-at-point): Guard against 'url'
1487 getting set to nil due to bad string matching. Subsequent matches
1488 would then choke because we passed string-match a nil.
1490 * lisp/url-http.el (url-http-parse-headers): Need to make the
1491 connection as 'free' when we get a 304 response (found in cache),
1492 or when a keep-alive conneection timed out, it would re-parse the
1493 headers and dispatch to the callback again. Eek.
1495 2000-10-02 William M. Perry <wmperry@aventail.com>
1497 * lisp/url-http.el (url-http-chunked-encoding-after-change-function):
1498 implement chunked transfer-coding.
1499 (url-http-create-request): We can now advertise ourselves as a 1.1
1502 2000-07-28 Sam Steingold <sds@gnu.org>
1504 * lisp/url-methods.el (url-scheme-default-loader): `callback' and
1505 `cbargs' are optional args (for calling from w3).
1506 (url-scheme-register-proxy): Typos fixes: `url-match' replaced
1507 with `string-match' and `protocol' with `scheme'.
1509 2000-07-18 Sam Steingold <sds@gnu.org>
1511 * lisp/url-handlers.el (require 'url): For url-retrieve-synchronously.
1512 * lisp/url-history.el (url-history-save-interval): Avoid circularity.
1514 2000-07-10 William M. Perry <wmperry@aventail.com>
1516 * lisp/mule-sysdp.el (mule-make-iso-character): If we are not in
1517 mule, and the character requested is > 255, then return "~"
1518 instead of letting whoever call us signal an error when they try
1519 to insert the character.
1520 (mule-make-iso-character): Also wrap the whole thing in a
1521 condition case and return "~" on error, in case make-char bombs on us.
1523 * lisp/url-cid.el (url-cid): Fix stupid mistake in the loader
1526 * lisp/url-util.el (url-display-percentage): New routine that uses
1527 the progress bar under XEmacs if available. Looks very sexy under
1528 XEmacs/GTK hacked to use the GNOME statusbar.
1531 (url-http-content-length-after-change-function): Use new function
1532 url-display-percentage instead of url-lazy-message.
1534 2000-01-27 William M. Perry <wmperry@aventail.com>
1536 * lisp/url-file.el (url-file-build-filename): Work around for
1537 differences in ange-ftp / efs handling of port numbers other than 21.
1539 1999-12-24 William M. Perry <wmperry@aventail.com>
1541 * lisp/url-irc.el: Added pointer to draft specification for the
1542 IRC URL so people don't think I'm crazy.
1544 * configure.in: Checks to make sure that Gnus was found, since we
1545 HAVE to have it now. Removed conditional compilation of url-cid.el
1547 1999-12-16 Eric Marsden <emarsden@mail.dotcom.fr>
1549 * lisp/url-util.el (url-get-url-at-point): Allow URLs wrapped in
1550 () to have periods at the end of the chunk.
1552 1999-12-14 William M. Perry <wmperry@aventail.com>
1554 * lisp/url-misc.el (url-man): Implement `man' URL types.
1555 (url-info): Autoload.
1557 (url-rlogin): Ditto.
1558 (url-telnet): Ditto.
1559 (url-tn3270): Ditto.
1560 (url-generic-emulator-loader): Ditto.
1562 * lisp/url-https.el (url-https-create-secure-wrapper): New macro
1563 to wrap arbitrary `http' methods with the appropriate magic to
1565 (file-exists-p): Use it.
1566 (file-readable-p): Use it.
1567 (file-attributes): Use it.
1569 * lisp/url-news.el (url-news-fetch-newsgroup): When building the
1570 server spec for Gnus, make sure we set
1571 nntp-open-connection-function directly, so that other news-related
1572 functions above us can set it.
1573 (url-snews): Implement `snews' URLs using `nntp-open-ssl-stream'.
1574 (url-nntp): Autoload.
1578 1999-12-12 William M. Perry <wmperry@aventail.com>
1580 * lisp/url-http.el (url-http-parse-response): New function to
1581 parse just the HTTP response code out of the buffer, without
1582 taking any other actions.
1583 (url-http-wait-for-headers-change-function): Use it here when we
1584 know we have an HTTP/1.x response.
1585 (url-http-wait-for-headers-change-function): Special case a
1586 response code of '304' or there could be some delays waiting for
1587 keep-alives to time out on cached documents with no known
1588 content-length on the server.
1590 1999-12-11 William M. Perry <wmperry@aventail.com>
1592 * aclocal.m4 (AC_CHECK_CUSTOMLOADS): Don't use $(EMACS) in here -
1593 the Makefile does that for us. We just need to provide what files
1594 to load/functions to run.
1596 * lisp/url-imap.el (url-imap-open-host): Need to bind
1597 nnimap-server-buffer or `nnimap-open-server' chokes trying to use
1598 the current buffer as the IMAP server buffer, which fails miserably.
1600 1999-12-11 Simon Josefsson <jas@pdc.kth.se>
1602 * lisp/url-imap.el: Initial (rough) implementation for IMAP urls.
1604 1999-12-11 William M. Perry <wmperry@aventail.com>
1606 * lisp/url-file.el (url-file-asynch-callback): Make the checks for
1607 ange-ftp vs. efs calling semantics consistent, so that if someone
1608 has NEITHER of them loaded, everything should still work.
1610 * lisp/url-handlers.el (url-copy-file): Autoload.
1611 (url-file-local-copy): Ditto.
1612 (url-insert-file-contents): Ditto.
1613 (url-setup-file-name-handlers): Ditto.
1615 1999-12-10 William M. Perry <wmperry@aventail.com>
1617 * lisp/url-http.el (mail-parse): Since we use functions from here,
1618 we should require it, eh?
1620 1999-12-10 Shenghuo ZHU <zsh@cs.rochester.edu>
1622 * lisp/url-cookie.el (url-cookie-multiple-line): One line cookie
1624 (url-cookie-generate-header-lines): Use it.
1626 1999-12-06 William M. Perry <wmperry@aventail.com>
1628 * lisp/mule-sysdp.el (mule-code-convert-region): Deal with Mule
1631 * lisp/url-news.el: Reimplemented news and nntp URL support.
1632 No longer bothers to check for outdated Gnus versions, since this
1633 will not work without them anyway.
1635 1999-12-05 Dave Love <fx@gnu.org>
1637 * lisp/url-methods.el, lisp/url-proxy.el, lisp/url-util.el,
1641 1999-12-05 William M. Perry <wmperry@aventail.com>
1643 * lisp/url-http.el (url-http-find-free-connection): Spit out a
1644 message when we have to contact a host so the user always gets
1645 at least some feedback.
1647 * lisp/url-expand.el (url-expander-remove-relative-links): Moved and
1649 (url-default-expander): Use it.
1651 * lisp/url-file.el (url-file-asynch-callback): Deal with just efs-auto
1653 (url-file): Add default content-type of application/octet-stream if
1655 (url-file): Correct bad call to url-host-is-local-p
1657 * lisp/url-handlers.el (url-insert-file-contents): Emacs doesn't
1658 like buffer-substring with nil arguments.
1659 (url-copy-file): Use mm-destroy-parts instead of just killing
1660 the buffer. Use defined interfaces when available!
1661 (url-insert-file-contents): Ditto.
1663 * lisp/url-http.el (url-http-create-request): Lots of changes to
1664 get proxying working.
1666 * lisp/url-methods.el (url-scheme-register-proxy): New function to
1667 find and register a proxy for a specific scheme.
1668 (url-scheme-get-property): Use it when we load a URL scheme for
1671 * lisp/url-util.el (url-get-url-at-point): Re-integrated
1673 1999-12-04 William M. Perry <wmperry@aventail.com>
1675 * lisp/url-file.el (url-file): Signal an error if
1676 url-file-build-filename could not find the filename.
1678 1999-12-01 William M. Perry <wmperry@aventail.com>
1680 * lisp/url.el (url-retrieve): Use url-history-update-url instead
1681 of manipulating the hash table directly.
1683 * lisp/url-history.el (url-completion-function): New function to
1684 use for reading a URL with completion.
1685 (url-history-update-url): New function to hide the hashtable
1686 implementation from people inserting things into the history.
1688 1999-11-30 William M. Perry <wmperry@aventail.com>
1690 * lisp/url-proxy.el (url-proxy): Minor tweaks to get proxy support
1693 * lisp/url-parse.el (url-generic-parse-url): Fix bad call to
1694 url-parse-args, which had changed the type of arguments it expects.
1696 * lisp/url-handlers.el (url-insert-file-contents): Ditto.
1697 (url-copy-file): Ditto.
1699 * lisp/url.el (url-mm-callback): Use mm-destroy-parts instead of
1700 just killing the buffer. Use defined interfaces when available!
1702 * aclocal.m4 (AC_EMACS_LISP): Correctly redirect things out to
1703 AC_FD_CC so they show up in config.log
1704 (AC_EMACS_CHECK_LIB): Duh, fixed stupid mistake that would make
1705 this always return 't' instead of 'yes' on successfully finding
1708 * lisp/url-http.el (url-http-parse-headers): Add some
1709 DAV-specific error codes.
1711 * lisp/url.el (url-retrieve): Allow pre-parsed URLs to be passed in.
1712 (url-retrieve-synchronously): Duh, make this function actually
1713 work again. Numerous problems with it, including variable name
1714 collisions - I love dynamically scoped lisps!
1716 * lisp/url-nfs.el (url-nfs-create-wrapper): New function to create
1717 wrappers onto the appropriate file-based URLs for file-name-handlers.
1719 * lisp/url-ftp.el: Moved the FTP stuff into it's own file - it
1720 might get messy with file-name-handlers and things.
1722 * lisp/url-http.el (url-http-clean-headers): Fix problem when
1723 using 'HEAD' requests. Thou shalt not change the length of the
1724 region during an after-change-function.
1726 * lisp/url-methods.el (url-scheme-methods): New variable that
1727 holds a list of the methods/variables we look for in a URL scheme.
1728 (url-scheme-get-property): Use it.
1730 1999-11-29 William M. Perry <wmperry@aventail.com>
1732 * lisp/url-http.el (url-http-file-attributes): Reimplement.
1733 (url-http-file-exists-p): Ditto.
1735 * lisp/url-nfs.el: Reimplemented the `nfs' URL scheme.
1737 * lisp/url-file.el (url-file-create-wrapper): New macro to create
1738 file-name-handler stubs for all the FTP/FILE stuff.
1740 * lisp/url-handlers.el: New file to handle file-name-handler-alist
1741 cruft. Generic interface on top of functions that each URL
1742 loader provides, if capable.
1744 1999-11-27 William M. Perry <wmperry@aventail.com>
1746 * lisp/url-https.el: Implemented HTTPS support.
1748 1999-11-26 William M. Perry <wmperry@aventail.com>
1750 * url-privacy.el (url-setup-privacy-info): Don't rely on
1751 device-type being defined. Not going to bother redistributing
1752 devices.el for just one function.
1754 * url-methods.el (url-scheme-get-property): Emacs does not have
1755 the 3rd-argument to plist-get to specify the default. *sigh*
1757 * url-dired.el (add-minor-mode): Add definition for Emacs.
1759 * url-http.el (url-http-generic-after-change-function):
1760 New function, since Emacs does not allow you to change the
1761 after-change-functions variable from within a function run by
1762 said hook. This just hands it off to the REAL function.
1763 Side-effect is that this now works on Emacs at all. :)
1765 * Initial checkin of rewritten URL library.
1769 ;; add-log-time-zone-rule: t
1772 Copyright (C) 1999, 2001, 2002, 2004, 2005,
1773 2006 Free Software Foundation, Inc.
1774 Copying and distribution of this file, with or without modification,
1775 are permitted provided the copyright notice and this notice are preserved.
1777 ;; arch-tag: ac117078-3091-4533-be93-098162ac2926