1 2006-11-08 Magnus Henoch <mange@freemail.hu>
3 * url-http.el (url-http-handle-authentication): If there are
4 several authentication headers, use the strongest available
7 * url.el (url-retrieve-synchronously): Allow quitting when
10 2006-11-03 Shun-ichi GOTO <gotoh@taiyo.co.jp> (tiny change)
12 * url-http.el (url-http-handle-authentication): If there are
13 several authentication headers, use the first with a supported
16 2006-11-01 Magnus Henoch <mange@freemail.hu>
18 * url-http.el (url-http-create-request): Use buffer-local
19 equivalents of dynamically bound variables.
21 2006-10-29 Magnus Henoch <mange@freemail.hu>
23 * url-gw.el (url-open-stream): Really use asynchronous
24 connections (accidentally disabled during debugging).
26 2006-10-28 Magnus Henoch <mange@freemail.hu>
28 * url-http.el (url-http-parse-headers): Fix misplaced paren.
30 2006-10-27 Magnus Henoch <mange@freemail.hu>
32 * url-http.el (url-http-mark-connection-as-free): Verify that
33 connection is open before saving it.
34 (url-http-handle-authentication): Use url-retrieve-internal
35 instead of url-retrieve.
36 (url-http-parse-headers): Adapt to new callback interface.
37 (url-http): Handle non-blocking connections.
38 (url-http-async-sentinel): Create.
40 * url.el (url-retrieve): Update docstring for new callback interface.
42 (url-retrieve-internal): Move code from url-retrieve here.
44 * url-gw.el (url-open-stream): Use a non-blocking socket for
45 `native' gateway method, if available.
47 2006-10-16 Magnus Henoch <mange@freemail.hu>
49 * url-http.el (url-https-create-secure-wrapper): Always use tls
52 2006-10-12 Magnus Henoch <mange@freemail.hu>
54 * url-http.el (url-http-find-free-connection): Handle
55 url-open-stream returning nil.
57 2006-10-11 Magnus Henoch <mange@freemail.hu>
59 * url-https.el: Remove (clashes with url-http on 8+3 systems).
61 * url-http.el: Move contents of url-https.el here. Add autoloads.
63 2006-10-09 Magnus Henoch <mange@freemail.hu>
65 * url-parse.el (url-generic-parse-url): Handle URLs with empty
66 path component and non-empty query component. Untangle path,
67 query and fragment parsing code. Add references to RFC 3986 in
69 (url-recreate-url-attributes): Start query string with "?", not ";".
71 2006-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
73 * url-dav.el (url-dav-file-attributes): Simplify.
75 * url-http.el (url-http-head-file-attributes): Add device "info".
77 2006-09-18 Michael Olson <mwolson@gnu.org>
79 * url-methods.el (url-scheme-register-proxy): Handle case where
80 getenv returns an empty string for http_proxy. This prevents an
81 error when calling `format' later on.
83 2006-08-31 Diane Murray <disumu@x3y2z1.net>
85 * url-parse.el (url-recreate-url-attributes): New function, code
86 simply moved from `url-recreate-url'.
87 (url-recreate-url): Use it.
88 Put the `url-target' at the end of the URL after the attributes.
90 * url-http.el (url-http-create-request):
91 Use `url-recreate-url-attributes' when setting real-fname.
93 2006-08-29 Diane Murray <disumu@x3y2z1.net>
95 * url-cookie.el (url-cookie-write-file): Really don't use versioned
98 2006-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
100 * url-handlers.el (url-file-local-copy): Tell url-copy-file that the
101 dest file will already exist.
103 2006-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
105 * url-util.el (url-hexify-string): Only utf-8 encode if it's
107 (url-normalize-url): Remove unused var `grok'.
108 (url-truncate-url-for-viewing): Remove unused var `tail'.
110 2006-07-30 Thien-Thi Nguyen <ttn@gnu.org>
112 * url-util.el (url-hexify-string): Rewrite.
113 Suggested by David Smith <davidsmith@acm.org>.
115 2006-07-12 Michael Olson <mwolson@gnu.org>
117 * url-irc.el (url-irc-erc): Call erc-handle-irc-url.
119 2006-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
121 * url-cookie.el: Remove spurious * in docstrings.
122 (url-cookie-write-file): Don't use versioned backups.
123 (url-cookie-host-can-set-p): Remove unused var `tmp'.
125 2006-07-04 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de>
127 * url-cookie.el (url-cookie-save-interval): Move to url-cookie group.
128 (url-cookie-write-file): Reset url-cookies-changed-since-last-save.
130 2006-05-12 Reiner Steib <Reiner.Steib@gmx.de>
132 * url-http.el (url-http-file-exists-p): Test if status is integer.
134 2006-05-05 Andreas Seltenreich <seltenreich@gmx.de>
136 * url-http.el (url-http-parse-headers): Don't reuse connection if
137 "Connection: close" header was seen.
139 2006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
141 * url-gw.el (url-open-stream): Don't hide errors.
142 (url-gateway-nslookup-host, url-open-telnet): Use with-current-buffer.
144 * url-handlers.el (url-insert): New function.
145 (url-insert-file-contents): Use it.
147 2006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
149 * url-handlers.el (url-handler-directory-file-name): New handler.
150 (url-file-local-copy): Plug race condition security hole.
152 2006-03-27 Romain Francoise <romain@orebokech.com>
154 * url-irc.el (url-irc-rcirc, url-irc-erc): New functions.
155 (url-irc-function): Add rcirc and ERC to the list of IRC clients.
156 Default to rcirc, since ZenIRC isn't part of Emacs.
158 2006-03-07 Stefan Monnier <monnier@iro.umontreal.ca>
160 * url-http.el (url-http-find-free-connection): Fix braino in last fix.
162 2006-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
164 * url-http.el (url-http-find-free-connection): Don't kill the process
165 when killing the temp buffer.
166 (url-http-symbol-value-in-buffer): Massage to make it clear to the
167 byte-compiler that the function is defined.
169 2006-02-20 Stefan Monnier <monnier@iro.umontreal.ca>
171 * url.el (url-redirect-buffer): New var.
172 (url-retrieve-synchronously): Use it to follow redirections.
174 * url-http.el: Require `url' rather than try to autoload parts of it.
175 (url-http-find-free-connection): `url-open-stream' needs a real buffer.
176 (url-http-parse-headers): Set `url-redirect-buffer' when following
179 2006-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
181 * url-news.el: Move defvars out of eval-when-compile.
182 (url-news-fetch-message-id, url-news-fetch-newsgroup):
183 Use with-current-buffer.
185 2006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
187 * url.el (url-retrieve-synchronously): Adjust the workaround so as not
188 to stop in the middle of a redirection.
190 * url-vars.el (url-privacy-level): Add setter.
192 2006-01-05 Stefan Monnier <monnier@iro.umontreal.ca>
194 * url-history.el (url-history-hash-table): Initialize in declaration.
195 (url-history-parse-history): Don't reset the history.
196 (url-history-save-history): Create parent dir if necessary.
197 (url-history-save-history): Don't write the initialization of
198 url-history-hash-table into the history file.
199 (url-have-visited-url): Simplify since url-history-hash-table isn't nil.
200 (url-completion-function): Simplify.
202 * url-cookie.el (url-cookie-parse-file): Don't complain of missing file.
203 (url-cookie-parse-file, url-cookie-write-file, url-cookie-retrieve)
204 (url-cookie-generate-header-lines, url-cookie-handle-set-cookie)
205 (url-cookie-setup-save-timer): Remove autoload cookies.
206 They're only called from files that require url-cookie anyway.
208 * url-history.el (url-history-setup-save-timer)
209 (url-history-parse-history, url-history-save-history):
210 Remove autoload cookies. They're only called from url.el which requires
212 (url-history-parse-history): Don't complain if the file is missing.
214 2006-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
216 * url-handlers.el (url-retrieve-synchronously): Don't autoload.
218 * url.el (url-retrieve, url-retrieve-synchronously): Autoload.
220 * url-cache.el: Require `url'.
222 2005-12-27 Stefan Monnier <monnier@iro.umontreal.ca>
224 * url-cache.el (url-store-in-cache): Use save-current-buffer.
226 * url.el (url-configuration-directory): Don't autoload because the
227 default value needs to be computed at run-time, not dump-time.
229 2005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
231 * url-cookie.el (url-cookie-write-file): Create parent dir.
233 * url.el (url-configuration-directory): Use ~/.emacs.d if possible.
235 2005-12-07 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
237 * url-cookie.el (url-cookie-save-interval): Simplify.
238 (url-cookie-setup-save-timer): Simplify.
240 2005-12-04 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
242 * url-history.el (url-history-list): Var deleted.
243 (url-history-save-interval): Simplify.
244 (url-history-setup-save-timer): Simplify.
246 2005-12-01 Kim F. Storm <storm@cua.dk>
248 * url-history.el (url-history-track): Fix last change.
250 2005-12-01 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
252 * url-history.el (url-history-track):
253 Call url-history-setup-save-timer in :set function.
254 :type allows three alternatives.
255 (url-history-setup-save-timer): Test url-history-track.
256 * url.el (url-retrieve): Test url-history-track.
258 2005-11-18 Stefan Monnier <monnier@iro.umontreal.ca>
260 * url-http.el: Use with-current-buffer.
261 (url-http-target-url): Rename from url-http-cookies-sources.
262 (url-http-parse-headers): Use it.
263 (url-http-handle-authentication): Use subst-char-in-string.
265 2005-11-16 Juergen Hoetzel <emacs@hoetzel.info> (tiny change)
267 * url-handlers.el (url-insert-file-contents): Use the charset info
268 provided by the HTTP server, if any.
270 2005-10-20 CHENG Gao <chenggao@gmail.com> (tiny change)
272 * url-nfs.el (top level):
273 * url-handlers.el (directory-files):
274 * url-file.el (top level):
275 * url-dired.el (url-dired-minor-mode-map):
276 * url-http.el (url-http-chunked-encoding-after-change-function):
277 Remove XEmacs support.
279 2005-10-15 Richard M. Stallman <rms@gnu.org>
281 * url.el: Don't try to autoload hash table functions.
283 2005-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
285 * url-http.el (url-http-create-request): Avoid incorrect implicit
286 unibyte->multibyte conversion.
288 2005-09-17 Richard M. Stallman <rms@gnu.org>
290 * url-vars.el (url-mail-command): Don't test fboundp of `compose-mail'.
292 * url-mailto.el (url-mailto): Special case `mail'.
293 Don't test fboundp of `compose-mail'.
295 2005-09-15 Chong Yidong <cyd@stupidchicken.com>
297 * url-mailto.el (url-mailto): Delete mail buffer after sending
299 Call `compose-mail with `new' argument if possible.
301 2005-09-13 Chong Yidong <cyd@stupidchicken.com>
303 * url-mailto.el (url-mailto): Always use a new mail buffer.
305 2005-09-01 Chong Yidong <cyd@stupidchicken.com>
307 * url-util.el (url-parse-query-string): New optional argument
308 allow-newlines allows decoding of newlines.
310 * url-mailto.el (url-mailto): Allow newlines in URL arguments.
311 Don't lose original "to" value when there is a "to" header.
312 Remove carriage return characters in message body.
314 2005-08-24 Juanma Barranquero <lekktu@gmail.com>
316 * url-news.el (nntp-open-tls-stream, nntp-open-ssl-stream):
317 * url-http.el (url-http-cookies-sources): Defvar at compile time.
319 2005-07-15 Richard M. Stallman <rms@gnu.org>
321 * url-http.el (url-http-parse-headers): Add :redirect arg-pair
322 when calling url-retrieve, to indicate a redirect.
324 * url.el (url-retrieve): The callback function can get an additional
327 2005-07-04 Lute Kamstra <lute@gnu.org>
329 Update FSF's address in GPL notices.
331 2005-07-04 Juanma Barranquero <lekktu@gmail.com>
333 * url-history.el (url-history-track): Doc fix.
334 (url-history): Finish `defgroup' description with period.
336 * url-cookie.el (url-cookie):
337 * url-gw.el (url-gateway):
338 * url-news.el (url-news):
339 * url-vars.el (url, url-file, url-cache, url-mime, url-hairy):
340 Finish `defgroup' description with period.
342 2005-06-28 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
344 * url-http.el (url-http-create-request): Call url-recreate-url
347 2005-06-27 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
349 * url-http.el (url-http-create-request): When computing real-fname,
350 call url-filename in both cases.
352 2005-06-27 Richard M. Stallman <rms@gnu.org>
354 * url-cookie.el (url-cookie-store): Rename arg PATH to LOCALPART.
355 (url-cookie-retrieve): Likewise.
356 (url-cookie-generate-header-lines): Likewise.
357 (url-cookie-handle-set-cookie): Likewise.
358 (url-cookie-create): Expect :localpart instead of :path.
359 (url-cookie-localpart): Renamed from url-cookie-path.
360 (url-cookie-set-localpart): Renamed from url-cookie-set-path.
361 (url-cookie-file): Doc fix.
362 (url-cookie-p): Add doc string.
364 2005-06-23 Richard M. Stallman <rms@gnu.org>
366 * url-cookie.el (url-cookie-generate-header-lines): Fix autoload cookie.
368 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
370 * url-gw.el (url-open-stream):
371 * url-vars.el (url-gateway-unplugged): Fix spellings.
373 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
375 * url-history.el (url-completion-function): Follow error
378 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
380 * url-file.el (url-file, url-file-asynch-callback): with-current-buffer.
382 2005-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
384 * url-dav.el: Remove most autoload cookies.
385 Don't hook into the url-file-handler since it currently breaks all
388 * url-handlers.el (vc-registered): Explicitly disable VC for URL files.
390 * url.el (url-retrieve-synchronously): Don't exit precipitously when
391 fetching a file via ange-ftp.
393 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
395 * url-cookie.el (url-cookie-multiple-line): Fix spelling in docstring.
397 2005-05-19 Juanma Barranquero <lekktu@gmail.com>
399 * url-cookie.el (url-cookie-multiple-line):
400 Specify group and type in defcustom.
402 2005-05-06 Juanma Barranquero <lekktu@gmail.com>
404 * url-auth.el (url-register-auth-scheme):
405 * url-cookie.el (url-cookie-expired-p):
406 * url-dav.el (url-dav-process-date-property)
407 (url-dav-process-boolean-property, url-dav-process-DAV:status):
408 * url-http.el (url-http-chunked-encoding-after-change-function)
409 (url-http-wait-for-headers-change-function):
410 * url-ns.el (isInNet):
411 * url-parse.el (url-generic-parse-url):
412 * url-util.el (url-get-normalized-date): Replace `string-to-int'
413 by `string-to-number'.
415 2005-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
417 * url.el (url-retrieve-synchronously): Work around the fact that
418 url-http sometimes doesn't call the callback.
420 2005-04-04 Lute Kamstra <lute@gnu.org>
422 * url-handlers.el (url-handler-mode): Specify :group.
424 2005-02-26 James Cloos <cloos@jhcloos.com> (tiny change)
426 * url-history.el (url-have-visited-url): Don't barf if
427 url-history-hash-table is nil.
429 2005-02-14 Michael Welsh Duggan <md5i@cs.cmu.edu>
431 * url-http.el (url-http-parse-headers): Test url-automatic-caching.
433 2005-01-22 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
435 * url-http.el (url-http-parse-headers) <302>: Reset url-http-data
436 to nil, like for the 303 response.
438 2005-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
440 * url.el (url-retrieve-synchronously): Use accept-process-output rather
443 2005-01-03 Klaus Straubinger <ksnetz@arcor.de> (tiny change)
445 * url-http.el (url-http-handle-authentication):
446 Don't kill the current buffer.
448 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
450 * url-handlers.el: Don't `require' everything eagerly.
452 2004-11-30 Paul Pogonyshev <pogonyshev@gmx.net>
454 * url-http.el (url-http-handle-cookies): Bind `url-current-object'
455 to `url-http-cookies-sources' so that cookies are attributed to
457 (url-http): Make local variable `url-http-cookies-sources'.
459 2004-11-28 Andreas Schwab <schwab@suse.de>
461 * url-http.el (url-http-create-request): Don't add newline after
464 2004-11-20 Masatake YAMATO <jet@gyve.org>
466 * url.el (url-mm-callback): Delay the invocation
467 of `mm-destroy-parts'. Invoke `mm-destroy-parts'
468 when the buffer is killed.
470 2004-11-12 Masatake YAMATO <jet@gyve.org>
472 * url-mailto.el (url-mailto): Fix a typo in the comment.
474 2004-11-02 Masatake YAMATO <jet@gyve.org>
476 * url-imap.el (url-imap-open-host): Don't use
477 `string-to-int'. The port returned by `url-port'
478 is expected to be an integer.
480 * url-irc.el (url-irc): Ditto.
482 * url-news.el (url-news-open-host): Ditto.
484 * url-nfs.el (url-nfs-build-filename): Ditto.
486 2004-10-20 John Paul Wallington <jpw@gnu.org>
488 * url-gw.el (url-gateway-nslookup-host):
489 Use `set-process-query-on-exit-flag'.
491 2004-10-10 Lars Hansen <larsh@math.ku.dk>
506 * url-proxy.el: Update header and footer.
508 * url-vars.el: Update header.
510 2004-10-16 Richard M. Stallman <rms@gnu.org>
512 * url.el (url-do-setup): Don't set url-passwd-entry-func.
514 * url-vars.el (url-passwd-entry-func): Var deleted.
515 (mm-mime-mule-charset-alist): Remove compatibility code for old Gnus.
516 (url-weekday-alist): Rename from weekday-alist.
517 (url-monthabbrev-alist): Rename from monthabbrev-alist.
518 (url-vars-unload-hook): Initialize hook var to hold the function.
520 * url-util.el (url-get-normalized-date): Use url-weekday-alist and
521 url-monthabbrev-alist.
523 * url-misc.el: Load cl at compile time.
525 * url-mailto.el: Don't load cl.
526 (url-mailto): Fix call to `push'.
528 * url-gw.el (url-open-telnet): Use read-passwd.
530 * url-auth.el (url-basic-auth, url-digest-auth): Use read-passwd.
532 2004-10-12 Simon Josefsson <jas@extundo.com>
534 * url-vars.el (url-gateway-method): Add new method `tls'.
536 * url-news.el (url-snews): Use nntp-open-tls-stream if
537 url-gateway-method is tls.
539 * url-ldap.el (url-ldap-certificate-formatter):
540 Use tls-certificate-information if ssl.el is not available.
542 * url-https.el (url-https-create-secure-wrapper): Use tls if ssl
545 * url-gw.el (url-open-stream): Support tls url-gateway-method.
546 (url-open-stream): Likewise.
548 2004-10-10 Lars Hansen <larsh@math.ku.dk>
568 * url-util.el: Fix copyright notice.
570 2004-10-06 Stefan Monnier <monnier@iro.umontreal.ca>
572 * url-handlers.el (url-insert-file-contents): Use the URL to decide the
573 encoding, not the buffer-file-name (which might not even exist).
575 2004-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
577 * url-handlers.el (url-insert-file-contents): Decode contents.
579 2004-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
581 * url-util.el (url-debug): Use with-current-buffer.
583 * url-nfs.el (url-nfs-file-attributes): Add id-format parameter.
584 (url-nfs-create-wrapper): Use new backquote syntax.
586 * url-https.el (url-https-file-attributes): Add id-format param.
588 * url-http.el (url-http-head-file-attributes)
589 (url-http-file-attributes): Add id-format parameter.
591 * url-handlers.el: Use new find-file-hook.
592 (url-file-attributes): Add id-format parameter.
594 * url-file.el (url-file-create-wrapper): Use new backquote syntax.
595 (url-file-file-attributes): Add id-format parameter.
597 * url-dav.el: Use with-current-buffer.
598 (url-dav-process-response): Fix regexps and spurious quote.
599 (url-dav-file-attributes): Add id-format param.
601 2004-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
603 * url.el (url-retrieve): Use with-current-buffer.
605 * url-http.el (url-http-parse-headers, url-http-file-exists-p):
606 Remove unused var `version'.
608 * url-handlers.el (url-handler-mode): New minor mode.
609 (url-setup-file-name-handlers): Remove.
611 2004-04-12 John Paul Wallington <jpw@gnu.org>
613 * url-cookie.el (url-cookie-handle-set-cookie): Replace calls
614 to obsolete `assoc-ignore-case' with calls to `assoc-string'.
616 2004-04-11 Dave Love <fx@gnu.org>
618 * url-mailto.el (url-mailto):
619 * url-history.el (url-history-setup-save-timer):
620 * url-cookie.el (url-cookie-setup-save-timer): Avoid warnings.
622 * url-file.el (url-file-build-filename): Don't use
625 * url-auth.el (url-register-auth-scheme): Fix `format' call.
627 * url-about.el (url-scheme-registry): Defvar.
628 (url-about): Use text/plain.
630 * url-vars.el (cl): Don't require.
632 (url-bug-address): Use bug-gnu-emacs.
634 * url-util.el (url-hexify-string): Don't give multibyte error
636 (mail-header-extract): Autoload.
638 * url-parse.el: Doc fixes.
640 * url-ldap.el (ldap): Require.
641 (url-ldap): Fix `format' call.
642 (url-ldap-certificate-formatter): Avoid warning.
644 * url-https.el (url-https-create-secure-wrapper): Use modern backquotes.
646 * url-dav.el (url-dav-rename-file): Fix args of `signal'.
647 (url-intersection): New.
648 (url-dav-supported-p): Use it.
649 (url-dav-save-resource): Declare url-http-response-status special.
651 * url-cache.el (url-util): Require.
653 2004-04-10 Miles Bader <miles@gnu.org>
655 RCS keyword removal (only non-comment changes are enumerated here):
657 * url-vars.el (url-version): Use the constant string "Emacs"
658 instead of calculating something from the RCS `State' keyword
659 [the latter is almost entirely useless anyway].
661 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
664 * url-parse.el: Don't require url-auto.
666 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
668 * url: Imported the URL package from its own CVS repository into Emacs.
670 ===========================================================================
671 ===========================================================================
672 Copy of the ChangeLog file from URL's own CVS repository:
673 ===========================================================================
674 ===========================================================================
676 2003-07-16 Dave Love <fx@gnu.org>
678 * lisp/url.el (url-retrieve-synchronously): Revert last change.
681 2003-06-26 Sam Steingold <sds@gnu.org>
683 * lisp/url-handlers.el (url-handlers-create-wrapper): Do not call
684 method on invalid urls.
686 2003-05-29 Dave Love <fx@gnu.org>
688 * lisp/url.el (url-retrieve-synchronously): Use sleep-for, not
689 sit-for. From monnier@gnu.org.
691 2002-11-04 Walter C. Pelissero <walter@pelissero.org>
693 * lisp/url-methods.el (url-scheme-register-proxy): Make sure to convert
694 port numbers to integers when creating the URL objects for proxies.
696 2002-10-29 William M. Perry <wmperry@gnu.org>
698 * lisp/url-http.el (url-http-parse-headers): When doing a
699 redirect, some broken software (sourceforge) sends a redirect to
700 '/', which is blatantly illegal (see section 14.30 of the HTTP/1.1
701 specification). I wish we could deal with such lame software
702 appropriately (spank the authors), but this is the web, so we have
703 to kow-tow to the servers.
705 2002-10-27 William M. Perry <wmperry@gnu.org>
707 * lisp/url-http.el (url-http-create-request): If we are talking to
708 the default port for a the selected protocol, do NOT send the port
709 in the HOST header. This fixes the login page at sourceforge.
711 2002-09-17 William M. Perry <wmperry@gnu.org>
713 * lisp/url-http.el (url-http-handle-cookies): New function to deal
715 (url-http-parse-headers): Call `url-http-handle-cookies' here so
716 that cookie additions and deletions get handled immediately.
717 This is so that sites that set cookies while doing redirects
718 (my.yahoo.com, outlook web access, etc) work. This should also
719 fix sites that delete cookies on invalid access or other error
720 pages the user might not actually see.
721 (url-http-parse-headers): Silently convert non-HEAD and non-GET
722 methods to GET in redirects. Too many web sites do this now, and
723 it is just likely to confuse users.
725 2002-05-17 Dave Love <fx@gnu.org>
727 * texi/url.txi: Start making it vaguely useful.
729 * texi/Makefile.in (install): Cope with Debian install-info.
730 From Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann).
732 2002-04-22 Dave Love <fx@gnu.org>
734 * lisp/url-misc.el (man): Autoload to avoid warning.
735 (url-man): Don't require man here.
736 (url-data): Generalize in line with the RFC.
738 * lisp/url-gw.el (url-open-stream): Remove obsolete `tcp' case.
740 * lisp/url-vars.el: Doc fixes.
741 (url-mime-charset-string): New function.
742 (url-mime-charset-string): Use it to set the variable.
743 (url-set-mime-charset-string): New function.
744 (set-language-environment-hook): Use it.
745 (url-vars-unload-hook): New function.
747 * lisp/url-cookie.el (url-header-comparison): Delete.
748 (url-cookie-handle-set-cookie): Use assoc-ignore-case to avoid assoc*.
749 (url-cookie-save-interval): Make value agree with doc.
751 * lisp/url.el: Doc fixes.
752 (url-mm-callback): Don't call mm-destroy-parts immediately for
753 external viewing -- set up a process sentinel.
755 2002-02-02 William M. Perry <wmperry@gnu.org>
757 * lisp/Makefile.in (SOURCES): Remove mule-sysdp.el from the build rules.
759 2001-12-12 William M. Perry <wmperry@gnu.org>
761 * lisp/url-vars.el (url-nonrelative-link): Patch from Stefan
762 Monnier to use ` instead of ^ to match the relative link.
764 2001-12-10 William M. Perry <wmperry@gnu.org>
766 * lisp/url-dav.el (url-dav-file-attributes): Fix bad call to
767 plist-get (reversed args).
769 * lisp/url-file.el (url-file-build-filename): Make sure that we
770 have a parsed URL in this function.
772 2002-01-22 Dave Love <fx@gnu.org>
774 * lisp/url-cache.el (url-cache-file-writable-p): Doc fix.
776 * lisp/url-imap.el (url-imap): Maybe disable multibyte.
777 Bind coding-system-for-read. Require mm-util.
779 * lisp/url.el (url-do-setup): Use (featurep 'xemacs).
781 * lisp/mule-sysdp.el: Removed (obsolete).
783 2001-12-09 William M. Perry <wmperry@gnu.org>
785 * lisp/url-dav.el (url-dav-delete-something): Utility macro to
786 remove an arbitrary resource.
787 (url-dav-delete-directory): Use it.
788 (url-dav-delete-file): Ditto.
789 (url-dav-make-directory): New function.
790 (url-dav-rename-file): New function.
791 (url-dav-register-handler): New function to easily register a
792 WebDAV-specific file-name-handler operation.
793 (url-dav-file-name-all-completions, url-dav-file-name-completion):
794 New functions that allow file-name completion for WebDAV resources.
796 2001-12-08 William M. Perry <wmperry@gnu.org>
798 * lisp/url-dav.el (url-dav-directory-files): New function to
799 mimic `directory-files' for WebDAV.
800 (url-dav-delete-directory): New function to mimic
801 `delete-directory' for WebDAV.
803 2001-12-06 William M. Perry <wmperry@gnu.org>
805 * lisp/url-dav.el (url-dav-process-DAV:locktoken): Parse the
806 DAV:locktoken hrefs into a usable format.
807 (url-dav-process-response): Use an unwind-protect to make sure
808 that we clean up the buffer, even if there is a parsing error.
809 (url-dav-request): New function to act as the main entry point for
810 making DAV requests. Takes care of building the XML document with
811 appropriate namespaces, depth, etc, and parses the results.
812 (url-dav-get-properties): Use new url-dav-request function.
813 This is now just a thin wrapper around that to use PROPFIND and set any
814 extra properties we are looking for.
815 (url-dav-unlock-resource): New function to release a lock given a
816 URL and a lock-token.
817 (url-dav-process-DAV:getlastmodified)
818 (url-dav-process-DAV:creationdate)
819 (url-dav-process-DAV:iscollection)
820 (url-dav-process-DAV:ishidden): Fix typos! Its url-dav-*, not
822 (url-dav-active-locks): New function to get a list of all the
823 active locks for a resource.
824 (url-dav-save-resource): New function to actually save a resource
825 using the PUT method. I can now successfully save files to an
826 HTTP server with some manual steps from a lisp-interaction buffer.
828 * lisp/url-http.el (url-http-wait-for-headers-change-function):
829 Special case the 204/205 response codes. Some servers do not
830 send back a 0 content-length for these, and we would hang.
831 (url-http-parse-headers): Mark 204/205 response codes as
832 'successful' so that the callbacks get activated.
833 (url-http-options): Fix unbound variable usage.
835 * lisp/url-dav.el: Added full copyright information.
836 (url-dav-process-response): Make sure that we create a DAV:status
837 property when parsing a singleton response.
838 (url-dav-file-attributes): If the properties returned did not have
839 a succesful HTTP response code, then ignore them and use the
840 HEAD-based attributes.
842 * lisp/vc-dav.el: Added full copyright information.
844 * lisp/url-dav.el (url-dav-process-supportedlock-property):
845 Deal with text nodes in DAV:supportedlock nodes.
846 (url-dav-file-attributes-mode-string): This now gets the entire
847 property list instead of just the DAV:supportedlock node.
848 (url-dav-file-attributes): Make sure to pass the whole list in.
849 (url-dav-file-attributes-mode-string): Now properly sets do 'd' mode.
850 (url-dav-file-attributes-mode-string): Now uses the Apache mod_dav
851 'executable' bit to set the 'x' mode. See `mod_dav's custom
852 properties' at http://www.webdav.org/mod_dav/ for more details.
853 (url-dav-find-parser): New function to find the proper parser for
854 a node-type. Looks for
855 url-dav-process-XXX (url-dav-process-DAV:prop), otherwise falls
856 back to using url-dav-node-text. Caches the results on the nodes
858 (url-dav-dispatch-node): Utility routine to call a nodes handler easily.
859 (url-dav-process-*): Rename most of the handlers and made them
860 use url-dav-dispatch-node where appropriate.
861 (url-dav-process-DAV:prop): Instead of using the dav-data-type
862 property to dispatch the node, now uses dav-dispatch-node so that
863 it is easy to add parsers for special nodes.
864 (url-dav-process-DAV:depth, url-dav-process-DAV:resourcetype)
865 (url-dav-process-DAV:locktype, url-dav-process-DAV:lockscope)
866 (url-dav-process-DAV:getcontentlength)
867 (url-dave-process-DAV:getlastmodified)
868 (url-dave-process-DAV:creationdate)
869 (url-dave-process-DAV:iscollection)
870 (url-dave-process-DAV:ishidden): Aliases for the generic
871 url-dav-process-foo-property routines.
872 (url-dav-process-DAV:activelock)
873 (url-dav-process-DAV:lockdiscovery): Can now correctly parse
874 DAV:lockdiscovery nodes, so that we can find out who has a
875 resource locked and properly parse the reponse to a LOCK request.
876 (url-dav-process-DAV:status): Now parses ou the numeric status
877 from the HTTP response line.
878 (url-dav-process-response): New function to handle all the
879 parsing of an XML response from WebDAV. This handles all the
880 logic of checking the response content-type to make sure it is
881 XML, parses the tree, and interprets the tree.
882 (url-dav-process-response): Make sure that all responses look
883 like a DAV:multistatus response, even if we get a singleton
884 response back. This will just make the upper layer logic simpler.
885 (url-dav-get-properties): New optional argument NAMESPACES that
886 specifies what namespaces to use in the XML request.
887 (url-dav-get-properties): Got rid of the D: namespace in
888 requests. It doesn't save that much space. Just use DAV:
889 (url-dav-lock-identifier): New variable that should hold a URI
890 pointing to contact information for the user. This will be used
891 as the contents of the DAV:owner/DAV:href tag to identify the
892 owner of a LOCK when requesting it. This will be shown to other
893 users when the DAV:lockdiscovery property is requested, so make
894 sure you are comfortable with it leaking to the outside world.
895 (url-dav-lock-resource): New function to LOCK a dav resource.
897 2001-12-05 William M. Perry <wmperry@gnu.org>
899 * lisp/url-dav.el (url-dav-get-properties): New argument
900 ATTRIBUTES that allows you to ask for specific properties instead
901 of getting all properties via DAV:allprop.
903 * lisp/url-http.el (url-http-real-basic-auth-storage):
904 New variable for normal HTTP basic authentication.
905 (url-http-proxy-basic-auth-storage): New variable for HTTP proxy
906 basic authentication.
907 (url-http-handle-authentication): Follow new semantics for
908 url-basic-auth-storage.
910 * lisp/url-auth.el (url-basic-auth-storage): Change meaning of
911 this variable. It is now a symbol pointing to where we really
912 want to store the authorization information. This fixes proxy
913 auth and normal basic auth because of some local bindings that were
914 making it impossible to store the credentials in the global binding.
915 (url-basic-auth): Make sure we dereference url-basic-auth-storage
918 * lisp/url-util.el (url-debug): Add new types 'dav and
919 'retrieval to the customization list.
921 * lisp/url.el (url-retrieve-synchronously): Put in some debugging
924 * lisp/url-http.el (url-http-head-file-attributes): Rename old
925 url-http-file-attributes so that we can have a smarter one that
926 tries WebDAV first, then HEAD.
927 (url-http-file-attributes): New smart version that tries WebDAV first.
928 (url-http-options): New function that returns information gleaned
929 from an OPTIONS request for a URL. Returns a property list
930 returning the methods supported for the resource, what DAV and
931 DASL levels are supported, p3p information, and whether
932 byte-ranges are supported or not.
933 (url-http-wait-for-headers-change-function): If we got a 0-byte
934 content-length, activate the callback immediately.
935 (url-http-wait-for-headers-change-function): For content-length
936 responses with actual body-data in the chunk we are handling, call
937 url-http-content-length-after-change-function with the remaining
938 data. Otherwise we can deadlock if the headers and the entire
939 body exist arrive in one chunk.
941 * lisp/url-dav.el: New file to contain the WebDAV
942 (http://www.webdav.org/) implementation.
943 (url-dav-supported-p): Cheap way to figure out whether we will be
944 able to do DAV at all. We rely on the XML parser expanding
945 namespaces for us, and currently you need a patched version of
946 xml.el to do this. Patch sent to author for consideration.
947 (url-dav-file-attributes): Much more complete version of
948 `file-attributes' using the WebDAV PROPFIND method. Now correctly
949 finds out whether something is a directory (a WebDAV collection),
950 the last modification time, and permissions (based on the
951 DAV:supportedlock information).
952 (url-dav-get-properties): Generic interface to get WebDAV
953 properties for a URL. Can specify an optional `depth' parameter
954 to tell the web server how many directory (collection) levels to
955 recurse when retrieving the property lists. Returns an assoc
956 list keyed off of the resource, the cdr of which is a property list.
957 (url-dav-datatype-attribute): We support the XML-Data note
958 (http://www.w3.org/TR/1998/NOTE-XML-data) to figure out what the
959 datatypes of attributes are. Currently only date, dateTime, int,
960 number, float, boolean, and uri are supported.
962 2001-12-04 William M. Perry <wmperry@gnu.org>
964 * lisp/url-handlers.el (file-name-absolute-p): New hooked
965 version. If the filename matches our regexp, then it is always
966 absolute, so just return `t'.
967 (expand-file-name): New hooked version. If the fragment is an
968 absolute file or URL, then expand it relative to '/'.
969 (url-handler-regexp): New regexp for specific schemes that we
970 want the file-name-handlers to work off of.
971 (url-setup-file-name-handlers): Use it when installing the handlers.
973 * lisp/url-http.el (url-http-find-free-connection): Better logging
974 about whether we are reusing an existing connection or not.
976 * lisp/url-methods.el (url-scheme-register-proxy): Fix bad call
977 to string-match instead of match-string (and with reversed
980 * lisp/url-http.el (url-http-debug): Change to now use the
981 generic url-debug function to do the actual logging. Still a
982 separate function so that we can do our magic on the network
983 connection if the user quits while we are downloading.
985 * lisp/url-handlers.el (url-file-handler): Now logs the result of
986 the hooked or real call.
988 * lisp/url-util.el (url-debug): New function for generic debug logging.
990 2001-11-28 William M. Perry <wmperry@gnu.org>
992 * lisp/url-imap.el (url-imap-open-host): Use backquote.
993 (url-imap): Now switches to 'login as the imap authenticator if
994 the URL provides a username and password.
996 * lisp/url-handlers.el (url-setup-file-name-handlers): Use cl &
997 push to replace some strange logic in here.
998 (url-run-real-handler): New function to run the real hooks in
999 case we get a false positive or an operation that we do not
1000 support. The old way disabled _ALL_ file-name-handlers when
1001 we hit something we didn't understand - this disables JUST us.
1002 (url-file-handler): Remove the logic about removing the leading
1003 '/' off of the first argument... it may not be safe to always
1004 assume that the first argument is the one we are acting on -
1005 `default' is the second argument for expand-file-name for example.
1006 (url-setup-file-name-handlers): Use url-nonrelative-link
1007 directly. This means that you must type in the URL directly
1008 without prefixing it with a '/'.
1010 (gnus-cache-articles-in-group "nnml+mail:comp.emacs-devel")
1012 Ends up calling (expand-file-name "nnml+mail:comp.emacs-devel" ...)
1013 which activates us (because 'nnml+mail' _is_ a valid scheme name
1014 for a URI). We get thoroughly confused and end up returning
1015 `nil' when we shouldn't.
1017 2001-11-26 William M. Perry <wmperry@gnu.org>
1019 * lisp/url-handlers.el (file-writable-p): Add NULL handler for
1020 this so that visiting a URL directly will work.
1021 (file-symlink-p): Ditto.
1022 (url-insert-file-contents): If `visit' is non-nil then make sure
1023 we set buffer-file-name. After these changes you can visit
1024 http://www.gnu.org/ directly from the minibuffer.
1025 (url-insert-file-contents): When inserting the file contents,
1026 use a save-excursion so that we behave just like the original.
1028 2001-11-25 William M. Perry <wmperry@gnu.org>
1030 * lisp/url-util.el (url-hexify-string): Fix bad use of mapconcat.
1032 2001-11-24 William M. Perry <wmperry@gnu.org>
1034 * lisp/url-about.el (url-about): New loader scheme to handle
1035 about:foo URLs. Automatically tries to find a `url-about-foo'
1036 function to display the actual data.
1037 (url-about-protocols): Implement about:protocols
1039 * lisp/url-http.el (url-http): Make sure that we signal an error
1040 when we cannot open a network connection for whatever reason.
1041 Before, it would just silently clean up after itself and the user
1042 got absolutely no indication that an error had occured. If the
1043 error should truly be ignored, the caller should do that for us.
1044 (url-http-chunked-encoding-after-change-function): Doh! Need to
1045 user marker-position in some log messages now that
1046 url-http-chunked-start is a marker.
1048 2001-11-22 William M. Perry <wmperry@gnu.org>
1050 * lisp/url-https.el: Fixed definition of url-https - was using the
1051 wrong signature. Too much cut & paste.
1052 (url-https-create-secure-wrapper): Fix so that url-https works
1053 at all. Was not taking a null `method' into account when calling
1054 the wrapped function so url-https tried to call url-http-nil. *sigh*
1057 (url-http-chunked-encoding-after-change-function): Add some
1058 feedback when not debugging about what content-type and chunk # we
1060 (url-http-chunked-encoding-after-change-function): Use a marker
1061 for url-http-chunked-start so that we can safely delete the
1062 chunk-tokens instead of just marking them as invisible.
1063 (url-http-chunked-encoding-after-change-function): Actually delete
1064 the chunk-tokens. Now that we are not run from 'real'
1065 after-change functions, this is safe, and the right thing to do.
1066 Otherwise the HTML parser still saw them and inferred all sorts of
1067 bad things about the document (ie: nothing had a title!)
1069 2001-11-21 William M. Perry <wmperry@gnu.org>
1071 * lisp/url-http.el (url-http-debug): Document this variable.
1072 People other than I might want to use it.
1073 (url-http-debug): Put some code in here to check quit-flag
1074 directly. When the chunked encoding went into a tight spin, your
1075 Emacs would be wedged forever. This short-circuits all the
1076 after-change functions and signals an error.
1077 (url-http-debug): If url-http-debug is non-nil and non-t, then log
1078 the debug messages using `message' as well as sending them to the
1080 (url-http-chunked-encoding-after-change-function): Got rid of the
1081 no-initial-crlf. Had an epiphany and I can just infer this from
1082 url-http-chunked-counter being 0.
1083 (url-http-chunked-encoding-after-change-function): Move the debug
1084 statement about reading chunk #foo into the loop so that each
1085 chunk will have a log message associated with it.
1086 (url-http-chunked-encoding-after-change-function): Make sure to
1087 set read-next-chunk to nil when the regular expression match fails
1088 to fire. Otherwise we could loop forever.
1089 (url-http-chunked-encoding-after-change-function): Tweak the
1090 regular expression to be a little less greedy when looking for a chunk.
1091 (url-http-wait-for-headers-change-function): Remove the last
1092 argument when calling
1093 url-http-chunked-encoding-after-change-function. It is no longer
1094 needed. I should use my brain sometime.
1096 * lisp/url-vars.el (and): Fix feature test for xemacs and
1097 coding-system-list behaviour.
1100 (url-http-chunked-encoding-after-change-function): Add optional
1101 no-initial-crlf flag that modifies the regular expression.
1102 This is only set from url-http-wait-for-headers-change-function so that
1103 the initial CRLF in the HTTP headers is not swallowed.
1104 (url-http-chunked-encoding-after-change-function): Fix a few
1105 off-by-one errors by using (match-end 0) instead of 1.
1106 (url-http-chunked-encoding-after-change-function): Add a few
1107 url-http-debug calls to help track down problems in the chunked
1109 (url-http-chunked-encoding-after-change-function): The chunk
1110 reading in here is now in a while loop so that if Emacs feeds us a
1111 chunk of data that happens to contain more than one 'chunk'
1112 delimiter, we behave correctly.
1113 (url-http-wait-for-headers-change-function): Make sure that we
1114 pass no-initial-crlf to
1115 url-http-chunked-encoding-after-change-function when passing
1116 initial data to the decoder.
1117 (url-http-generic-filter): url-http-debug statement so we can tell
1118 when/where our after-change-functions are being called.
1120 2001-10-11 Dave Love <fx@gnu.org>
1122 * lisp/url-handlers.el: Doc fixes.
1123 (string-match): Use (featurep 'xemacs).
1125 * lisp/url-methods.el (url-scheme-get-property): Avoid `mapc'.
1127 * lisp/url-proxy.el (url-find-proxy-for-url): Avoid `pop'.
1129 * lisp/url-vars.el (url-running-xemacs): Delete.
1130 (url-gateway-unplugged): New variable.
1132 * lisp/url-gw.el (url-open-stream): Use url-gateway-unplugged.
1133 Comment out OS/2 stuff.
1135 2001-10-05 Dave Love <fx@gnu.org>
1137 * lisp/url-mailto.el (url-mailto): Don't send auto-generated mail
1138 without confirmation.
1140 2001-10-02 Dave Love <fx@gnu.org>
1142 * lisp/url-http.el (url-http-create-request): Check cache for
1143 proxy-obj, if defined, rather than url.
1144 (url-http): Use dolist, not mapc (runtime cl dependency).
1146 * lisp/url-methods.el: Maybe require cl at runtime.
1147 (url-scheme-register-proxy): Fix fetching from environment.
1148 Don't concat a number.
1150 2001-10-01 Dave Love <fx@gnu.org>
1152 * lisp/url-parse.el: Use modern backquote syntax.
1154 * lisp/url-vars.el (url-uncompressor-alist): Add bzip2.
1155 (url-mail-command): Prefer compose-mail.
1156 (tcp-binary-process-input-services): Comment out.
1157 (url-working-buffer): New constant.
1159 * lisp/url-util.el (url-extract-mime-headers): New function.
1161 * lisp/url-mailto.el (url-mailto): Set source-url. Don't add
1164 2001-09-20 Dave Love <fx@gnu.org>
1166 * lisp/url-http.el (url-http-create-request): Don't concat a number.
1168 2001-06-05 Dave Love <fx@gnu.org>
1170 * lisp/url.el (url-do-setup): Doc fix. Don't try to frob
1171 tcp-binary-process-input-services. Remove function wrapper for lambda.
1172 (url-retrieve): Barf with sensible message if url-type is null.
1174 * lisp/url-http.el (url-http): Don't try to set process
1175 coding-system here -- done in url-gw.
1177 * lisp/url-gw.el (url-gw-inhibit-code-conversion): Remove.
1178 (url-open-stream): Bind coding-system-for{read,write} when setting
1179 up the connexion. Don't call url-gw-inhibit-code-conversion.
1181 2001-05-24 William M. Perry <wmperry@gnu.org>
1183 * lisp/url.el (url-retrieve-synchronously): Avoid accept-process-output
1184 in url-retrieve-synchronously.
1186 2001-05-23 William M. Perry <wmperry@gnu.org>
1188 * lisp/url.el (url-retrieve-synchronously): Don't put a timeout on
1189 accept-process-output. This is evidently causing hangs in Emacs
1190 21 when viewing complex pages with images or stylesheets.
1191 www.yahoo.com is now viewable.
1193 * lisp/url-gw.el (url-open-stream): Avoid using mule-sysdp
1194 (mule-inhibit-code-conversion) and just have a local function that
1195 does this minimal cruft.
1196 (url-gw-inhibit-code-conversion): New function to turn off code
1197 conversion in a process.
1199 2001-05-22 William M. Perry <wmperry@gnu.org>
1201 * lisp/url.el (url-retrieve-synchronously): Use lexical-let so
1202 that we can allow multiple asynch retrievals to happen at once.
1203 (url-retrieve-synchronously): Use a much smaller timeout when
1204 doing the accept-process-output. This gets rid of the long delays
1205 if you are on a fast net connection and retrieve small documents
1206 that finish asynchronously before the first accept-process-output
1207 can be run. All hail broadband and 100Mb in the house!
1208 (url-retrieve-synchronously): Add documentation for this function.
1209 (url-retrieve): Ditto.
1210 (url-mm-url): Ditto.
1212 * lisp/url-vars.el: Replaced `HTTP/1.0' with just `HTTP' in some
1213 documentation strings. Ok, so I'm anal.
1215 * lisp/url-methods.el (url-scheme-methods): Add default methods
1216 for file-directory-p and file-truename.
1218 2001-05-22 Dave Love <fx@gnu.org>
1220 * lisp/url-auth.el (url-warn): Autoload.
1222 * lisp/url-proxy.el (url-warn): Autoload.
1224 * lisp/url-nfs.el: Fix `file-truname' typo.
1226 * lisp/url-news.el: Require cl when compiling.
1227 (url-warn, gnus-group-read-ephemeral-group): Autoload.
1228 (url-nntp-default-port, url-news-default-port, url-nntp): Delete.
1229 (url-news-fetch-newsgroup): Declare gnus-group-buffer special.
1231 * lisp/url-util.el (mule-decode-string): Don't autoload.
1232 (url-hexify-string): Just barf on multibyte characters.
1233 (url-generate-unique-filename): New function.
1235 * lisp/url-file.el (url-file): Use url-generate-unique-filename,
1236 not mm-generate-unique-filename.
1238 * lisp/url-http.el: Declare things special in various places.
1239 (url-http-activate-callback): Don't set
1240 url-http-real-after-change-function.
1242 2001-05-22 William M. Perry <wmperry@gnu.org>
1244 * lisp/url-http.el (url-http-attempt-keepalives): New variable to
1245 control whether we try to do keep-alives for our connections.
1246 (url-http-version): New variable to control whether we advertise
1247 ourselves as an HTTP/1.1 client or not. This can be useful for
1248 avoiding chunked encoding, and other 1.1 features we may not have
1249 fully implemented yet.
1250 (url-http-create-request): Honor the new variables.
1252 2001-05-21 Dave Love <fx@gnu.org>
1254 * lisp/url-vars.el (mm-mime-mule-charset-alist): Don't readjust it
1256 (url-mime-charset-string): Don't reverse the list before sorting.
1258 2001-05-17 William M. Perry <wmperry@gnu.org>
1260 * lisp/url-http.el (url-http-generic-filter): Avoid using
1261 after-change-functions natively. There are just too many ways
1262 that this screws up in Emacs 21. Use a filter function on the
1263 process instead, and call the hook on
1264 url-http-after-change-function manually. [Actually, it will work
1265 in Emacs 21, but one problem that has been fixed in Emacs 21
1266 exists in Emacs 20. -- fx]
1268 * lisp/url-vars.el (url-mime-charset-string): sort-coding-systems
1269 does not exist on older versions of Emacs, or any version of
1270 XEmacs. Do not call it unless it is bound.
1272 2001-05-17 Dave Love <fx@gnu.org>
1274 * lisp/url-http.el (url-http-create-request): Fix non-GET requests.
1276 2001-05-16 Dave Love <fx@gnu.org>
1278 * lisp/url-vars.el: Doc fixes. Require mm-util.
1279 (url-mime-charset-string): New variable.
1281 * lisp/url-http.el: Doc fixes.
1282 (url-http-create-request): Rearrange how we assemble the request.
1283 Avoid generating bogus requests with an empty real-fname.
1284 (url-http-handle-authentication): Declare status and success special.
1285 (url-http): Call mm-disable-multibyte. Set process buffer's
1286 coding systems to binary.
1288 * lisp/url-misc.el (url-data): Call mm-disable-multibyte.
1290 * lisp/url-file.el: Don't require mule-sysdp. Fix `file-truname' typo.
1291 (url-file-find-possibly-compressed-file): Doc fix.
1292 (url-file): Bind coding-system-for-read. Call mm-disable-multibyte.
1294 * lisp/url-cache.el: Don't require mule-sysdp.
1295 (url-store-in-cache): Avoid mule-write-region-no-coding-system.
1297 * lisp/url.el: Don't require mule-sysdp.
1298 (url-retrieve): Only set text properties if url is a string.
1300 2001-05-14 Dave Love <fx@gnu.org>
1302 * lisp/url-http.el (url-http-create-request):
1303 Declare proxy-object, proxy-info special.
1304 (url-http-handle-authentication): Declare success special.
1306 2001-05-12 Dave Love <fx@gnu.org>
1308 * lisp/url-http.el: Revert last change.
1310 2001-05-10 Dave Love <fx@gnu.org>
1312 * lisp/url-http.el (url-http-generic-after-change-function):
1313 Make it permanent-local.
1315 2001-05-05 Dave Love <fx@gnu.org>
1317 * lisp/url-http.el: Autoload some functions.
1318 (cl): Require when compiling.
1319 (url-http-extra-headers): Defvar when compiling.
1320 (url-http): Treat after-change-functions as a local hook.
1322 * lisp/url-history.el (url-parse): Require.
1323 (url-do-setup): Autoload.
1325 * lisp/url-gw.el: Require url-vars. Autoload some functions.
1327 * lisp/url-file.el: Require mailcap. Require cl when compiling.
1328 Use (featurep 'xemacs).
1329 (url-file-build-filename): Bind pos-index.
1330 (url-file): Call url-find-file-dired, not url-dired-find-file.
1332 * lisp/url-dired.el: Add copyright notice. Autoload some functions.
1333 (url-dired-minor-mode-map): Use (featurep 'xemacs).
1334 (url-dired-find-file-mouse): Use mouse-set-point, not event-point.
1335 (url-find-file-dired): Rename from one version of url-dired-find-file.
1337 * lisp/url-cid.el: Don't require widget. Require mm-decode
1340 * lisp/url-util.el: Autoload mule-decode-string,
1341 timezone-parse-date, timezone-make-date-arpa-standard.
1342 (url-unreserved-chars): Fix list per RFC 2396.
1343 (url-hexify-string): Maybe string-make-unibyte.
1345 * lisp/url-news.el: Require nntp.
1347 * lisp/url-imap.el: Require cl when compiling. Require nnimap
1350 2001-05-04 Dave Love <fx@gnu.org>
1352 * lisp/url-handlers.el (url-file-local-copy): Use make-temp-file,
1353 not non-existent mailcap-generate-unique-filename.
1355 * lisp/url-privacy.el: Require url-vars. Require cl when compiling.
1357 * lisp/url-parse.el: Require url-vars.
1358 Autoload url-scheme-get-property.
1360 * lisp/url-nfs.el: Require cl when compiling. Test for XEmacs
1363 * lisp/url-mailto.el: Require cl when compiling.
1365 * lisp/url-cookie.el (url-cookie-handle-set-cookie):
1366 Call url-parse-args, not url-util-parse-args.
1368 * lisp/url-cache.el (url-cache-expired): Remove bogus `return'.
1370 2001-04-09 Dave Love <fx@gnu.org>
1372 * lisp/mule-sysdp.el (mule-detect-coding-version)
1373 (mule-code-convert-region, mule-inhibit-code-conversion)
1374 (mule-write-region-no-coding-system, mule-encode-string)
1375 (mule-decode-string, mule-truncate-string)
1376 (mule-find-charset-region, mule-coding-system-name)
1377 (mule-find-coding-system, mule-make-iso-character): Grok Mule 5.0.
1378 [There must be a better way.]
1379 (mule-coding-system-p, string-width): Use defalias.
1381 2001-01-03 Sam Steingold <sds@gnu.org>
1383 * lisp/url-http.el (url-http-wait-for-headers-change-function):
1384 set `url-http-end-of-headers' to 0 for HTTP 0.9
1386 2001-01-02 Sam Steingold <sds@gnu.org>
1388 * lisp/url-auth.el (provide): `url-auth', not `urlauth'
1390 2000-12-22 Dave Love <fx@gnu.org>
1392 * lisp/url-history.el (url): Don't require (to avoid recursion).
1393 (cl): Require when compiling.
1395 * lisp/url-http.el (url-auth): Require.
1396 (url-http-handle-authentication): Fix typo.
1398 * lisp/url-cookie.el (url-cookie-setup-save-timer): Fix typo.
1400 2000-12-20 Dave Love <fx@gnu.org>
1402 * lisp/url.el: Require mm-decode, mm-view when compiling.
1403 <not (fboundp 'puthash)>: Define puthash and
1404 autoload other has functions rather than using cl-...hash.
1407 * lisp/url-ns.el, lisp/url-methods.el, lisp/url-http.el:
1408 Avoid cl-...hash functions.
1410 * lisp/url-history.el: Avoid cl-...hash functions.
1413 * lisp/url-gw.el, lisp/url-cookie.el: Require cl only when compiling.
1415 2000-10-03 William M. Perry <wmperry@aventail.com>
1417 * lisp/url-util.el (url-get-url-at-point): Guard against 'url'
1418 getting set to nil due to bad string matching. Subsequent matches
1419 would then choke because we passed string-match a nil.
1421 * lisp/url-http.el (url-http-parse-headers): Need to make the
1422 connection as 'free' when we get a 304 response (found in cache),
1423 or when a keep-alive conneection timed out, it would re-parse the
1424 headers and dispatch to the callback again. Eek.
1426 2000-10-02 William M. Perry <wmperry@aventail.com>
1428 * lisp/url-http.el (url-http-chunked-encoding-after-change-function):
1429 implement chunked transfer-coding.
1430 (url-http-create-request): We can now advertise ourselves as a 1.1
1433 2000-07-28 Sam Steingold <sds@gnu.org>
1435 * lisp/url-methods.el (url-scheme-default-loader): `callback' and
1436 `cbargs' are optional args (for calling from w3).
1437 (url-scheme-register-proxy): Typos fixes: `url-match' replaced
1438 with `string-match' and `protocol' with `scheme'.
1440 2000-07-18 Sam Steingold <sds@gnu.org>
1442 * lisp/url-handlers.el (require 'url): For url-retrieve-synchronously.
1443 * lisp/url-history.el (url-history-save-interval): Avoid circularity.
1445 2000-07-10 William M. Perry <wmperry@aventail.com>
1447 * lisp/mule-sysdp.el (mule-make-iso-character): If we are not in
1448 mule, and the character requested is > 255, then return "~"
1449 instead of letting whoever call us signal an error when they try
1450 to insert the character.
1451 (mule-make-iso-character): Also wrap the whole thing in a
1452 condition case and return "~" on error, in case make-char bombs on us.
1454 * lisp/url-cid.el (url-cid): Fix stupid mistake in the loader
1457 * lisp/url-util.el (url-display-percentage): New routine that uses
1458 the progress bar under XEmacs if available. Looks very sexy under
1459 XEmacs/GTK hacked to use the GNOME statusbar.
1462 (url-http-content-length-after-change-function): Use new function
1463 url-display-percentage instead of url-lazy-message.
1465 2000-01-27 William M. Perry <wmperry@aventail.com>
1467 * lisp/url-file.el (url-file-build-filename): Work around for
1468 differences in ange-ftp / efs handling of port numbers other than 21.
1470 1999-12-24 William M. Perry <wmperry@aventail.com>
1472 * lisp/url-irc.el: Added pointer to draft specification for the
1473 IRC URL so people don't think I'm crazy.
1475 * configure.in: Checks to make sure that Gnus was found, since we
1476 HAVE to have it now. Removed conditional compilation of url-cid.el
1478 1999-12-16 Eric Marsden <emarsden@mail.dotcom.fr>
1480 * lisp/url-util.el (url-get-url-at-point): Allow URLs wrapped in
1481 () to have periods at the end of the chunk.
1483 1999-12-14 William M. Perry <wmperry@aventail.com>
1485 * lisp/url-misc.el (url-man): Implement `man' URL types.
1486 (url-info): Autoload.
1488 (url-rlogin): Ditto.
1489 (url-telnet): Ditto.
1490 (url-tn3270): Ditto.
1491 (url-generic-emulator-loader): Ditto.
1493 * lisp/url-https.el (url-https-create-secure-wrapper): New macro
1494 to wrap arbitrary `http' methods with the appropriate magic to
1496 (file-exists-p): Use it.
1497 (file-readable-p): Use it.
1498 (file-attributes): Use it.
1500 * lisp/url-news.el (url-news-fetch-newsgroup): When building the
1501 server spec for Gnus, make sure we set
1502 nntp-open-connection-function directly, so that other news-related
1503 functions above us can set it.
1504 (url-snews): Implement `snews' URLs using `nntp-open-ssl-stream'.
1505 (url-nntp): Autoload.
1509 1999-12-12 William M. Perry <wmperry@aventail.com>
1511 * lisp/url-http.el (url-http-parse-response): New function to
1512 parse just the HTTP response code out of the buffer, without
1513 taking any other actions.
1514 (url-http-wait-for-headers-change-function): Use it here when we
1515 know we have an HTTP/1.x response.
1516 (url-http-wait-for-headers-change-function): Special case a
1517 response code of '304' or there could be some delays waiting for
1518 keep-alives to time out on cached documents with no known
1519 content-length on the server.
1521 1999-12-11 William M. Perry <wmperry@aventail.com>
1523 * aclocal.m4 (AC_CHECK_CUSTOMLOADS): Don't use $(EMACS) in here -
1524 the Makefile does that for us. We just need to provide what files
1525 to load/functions to run.
1527 * lisp/url-imap.el (url-imap-open-host): Need to bind
1528 nnimap-server-buffer or `nnimap-open-server' chokes trying to use
1529 the current buffer as the IMAP server buffer, which fails miserably.
1531 1999-12-11 Simon Josefsson <jas@pdc.kth.se>
1533 * lisp/url-imap.el: Initial (rough) implementation for IMAP urls.
1535 1999-12-11 William M. Perry <wmperry@aventail.com>
1537 * lisp/url-file.el (url-file-asynch-callback): Make the checks for
1538 ange-ftp vs. efs calling semantics consistent, so that if someone
1539 has NEITHER of them loaded, everything should still work.
1541 * lisp/url-handlers.el (url-copy-file): Autoload.
1542 (url-file-local-copy): Ditto.
1543 (url-insert-file-contents): Ditto.
1544 (url-setup-file-name-handlers): Ditto.
1546 1999-12-10 William M. Perry <wmperry@aventail.com>
1548 * lisp/url-http.el (mail-parse): Since we use functions from here,
1549 we should require it, eh?
1551 1999-12-10 01:57:01 Shenghuo ZHU <zsh@cs.rochester.edu>
1553 * lisp/url-cookie.el (url-cookie-multiple-line): One line cookie
1555 (url-cookie-generate-header-lines): Use it.
1557 1999-12-06 William M. Perry <wmperry@aventail.com>
1559 * lisp/mule-sysdp.el (mule-code-convert-region): Deal with Mule
1562 * lisp/url-news.el: Reimplemented news and nntp URL support.
1563 No longer bothers to check for outdated Gnus versions, since this
1564 will not work without them anyway.
1566 1999-12-05 Dave Love <fx@gnu.org>
1568 * lisp/url-methods.el, lisp/url-proxy.el, lisp/url-util.el,
1572 1999-12-05 William M. Perry <wmperry@aventail.com>
1574 * lisp/url-http.el (url-http-find-free-connection): Spit out a
1575 message when we have to contact a host so the user always gets
1576 at least some feedback.
1578 * lisp/url-expand.el (url-expander-remove-relative-links): Moved and
1580 (url-default-expander): Use it.
1582 * lisp/url-file.el (url-file-asynch-callback): Deal with just efs-auto
1584 (url-file): Add default content-type of application/octet-stream if
1586 (url-file): Correct bad call to url-host-is-local-p
1588 * lisp/url-handlers.el (url-insert-file-contents): Emacs doesn't
1589 like buffer-substring with nil arguments.
1590 (url-copy-file): Use mm-destroy-parts instead of just killing
1591 the buffer. Use defined interfaces when available!
1592 (url-insert-file-contents): Ditto.
1594 * lisp/url-http.el (url-http-create-request): Lots of changes to
1595 get proxying working.
1597 * lisp/url-methods.el (url-scheme-register-proxy): New function to
1598 find and register a proxy for a specific scheme.
1599 (url-scheme-get-property): Use it when we load a URL scheme for
1602 * lisp/url-util.el (url-get-url-at-point): Re-integrated
1604 1999-12-04 William M. Perry <wmperry@aventail.com>
1606 * lisp/url-file.el (url-file): Signal an error if
1607 url-file-build-filename could not find the filename.
1609 1999-12-01 William M. Perry <wmperry@aventail.com>
1611 * lisp/url.el (url-retrieve): Use url-history-update-url instead
1612 of manipulating the hash table directly.
1614 * lisp/url-history.el (url-completion-function): New function to
1615 use for reading a URL with completion.
1616 (url-history-update-url): New function to hide the hashtable
1617 implementation from people inserting things into the history.
1619 1999-11-30 William M. Perry <wmperry@aventail.com>
1621 * lisp/url-proxy.el (url-proxy): Minor tweaks to get proxy support
1624 * lisp/url-parse.el (url-generic-parse-url): Fix bad call to
1625 url-parse-args, which had changed the type of arguments it expects.
1627 * lisp/url-handlers.el (url-insert-file-contents): Ditto.
1628 (url-copy-file): Ditto.
1630 * lisp/url.el (url-mm-callback): Use mm-destroy-parts instead of
1631 just killing the buffer. Use defined interfaces when available!
1633 * aclocal.m4 (AC_EMACS_LISP): Correctly redirect things out to
1634 AC_FD_CC so they show up in config.log
1635 (AC_EMACS_CHECK_LIB): Duh, fixed stupid mistake that would make
1636 this always return 't' instead of 'yes' on successfully finding
1639 * lisp/url-http.el (url-http-parse-headers): Add some
1640 DAV-specific error codes.
1642 * lisp/url.el (url-retrieve): Allow pre-parsed URLs to be passed in.
1643 (url-retrieve-synchronously): Duh, make this function actually
1644 work again. Numerous problems with it, including variable name
1645 collisions - I love dynamically scoped lisps!
1647 * lisp/url-nfs.el (url-nfs-create-wrapper): New function to create
1648 wrappers onto the appropriate file-based URLs for file-name-handlers.
1650 * lisp/url-ftp.el: Moved the FTP stuff into it's own file - it
1651 might get messy with file-name-handlers and things.
1653 * lisp/url-http.el (url-http-clean-headers): Fix problem when
1654 using 'HEAD' requests. Thou shalt not change the length of the
1655 region during an after-change-function.
1657 * lisp/url-methods.el (url-scheme-methods): New variable that
1658 holds a list of the methods/variables we look for in a URL scheme.
1659 (url-scheme-get-property): Use it.
1661 1999-11-29 William M. Perry <wmperry@aventail.com>
1663 * lisp/url-http.el (url-http-file-attributes): Reimplement.
1664 (url-http-file-exists-p): Ditto.
1666 * lisp/url-nfs.el: Reimplemented the `nfs' URL scheme.
1668 * lisp/url-file.el (url-file-create-wrapper): New macro to create
1669 file-name-handler stubs for all the FTP/FILE stuff.
1671 * lisp/url-handlers.el: New file to handle file-name-handler-alist
1672 cruft. Generic interface on top of functions that each URL
1673 loader provides, if capable.
1675 1999-11-27 William M. Perry <wmperry@aventail.com>
1677 * lisp/url-https.el: Implemented HTTPS support.
1679 1999-11-26 William M. Perry <wmperry@aventail.com>
1681 * url-privacy.el (url-setup-privacy-info): Don't rely on
1682 device-type being defined. Not going to bother redistributing
1683 devices.el for just one function.
1685 * url-methods.el (url-scheme-get-property): Emacs does not have
1686 the 3rd-argument to plist-get to specify the default. *sigh*
1688 * url-dired.el (add-minor-mode): Add definition for Emacs.
1690 * url-http.el (url-http-generic-after-change-function):
1691 New function, since Emacs does not allow you to change the
1692 after-change-functions variable from within a function run by
1693 said hook. This just hands it off to the REAL function.
1694 Side-effect is that this now works on Emacs at all. :)
1696 * Initial checkin of rewritten URL library.
1702 ;; arch-tag: ac117078-3091-4533-be93-098162ac2926