1 2005-08-24 Juanma Barranquero <lekktu@gmail.com>
3 * url-news.el (nntp-open-tls-stream, nntp-open-ssl-stream):
4 * url-http.el (url-http-cookies-sources): Defvar at compile time.
6 2005-07-15 Richard M. Stallman <rms@gnu.org>
8 * url-http.el (url-http-parse-headers): Add :redirect arg-pair
9 when calling url-retrieve, to indicate a redirect.
11 * url.el (url-retrieve): The callback function can get an additional
14 2005-07-04 Lute Kamstra <lute@gnu.org>
16 Update FSF's address in GPL notices.
18 2005-07-04 Juanma Barranquero <lekktu@gmail.com>
20 * url-history.el (url-history-track): Doc fix.
21 (url-history): Finish `defgroup' description with period.
23 * url-cookie.el (url-cookie):
24 * url-gw.el (url-gateway):
25 * url-news.el (url-news):
26 * url-vars.el (url, url-file, url-cache, url-mime, url-hairy):
27 Finish `defgroup' description with period.
29 2005-06-28 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
31 * url-http.el (url-http-create-request): Call url-recreate-url
34 2005-06-27 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
36 * url-http.el (url-http-create-request): When computing real-fname,
37 call url-filename in both cases.
39 2005-06-27 Richard M. Stallman <rms@gnu.org>
41 * url-cookie.el (url-cookie-store): Rename arg PATH to LOCALPART.
42 (url-cookie-retrieve): Likewise.
43 (url-cookie-generate-header-lines): Likewise.
44 (url-cookie-handle-set-cookie): Likewise.
45 (url-cookie-create): Expect :localpart instead of :path.
46 (url-cookie-localpart): Renamed from url-cookie-path.
47 (url-cookie-set-localpart): Renamed from url-cookie-set-path.
48 (url-cookie-file): Doc fix.
49 (url-cookie-p): Add doc string.
51 2005-06-23 Richard M. Stallman <rms@gnu.org>
53 * url-cookie.el (url-cookie-generate-header-lines): Fix autoload cookie.
55 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
57 * url-gw.el (url-open-stream):
58 * url-vars.el (url-gateway-unplugged): Fix spellings.
60 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
62 * url-history.el (url-completion-function): Follow error
65 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
67 * url-file.el (url-file, url-file-asynch-callback): with-current-buffer.
69 2005-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
71 * url-dav.el: Remove most autoload cookies.
72 Don't hook into the url-file-handler since it currently breaks all
75 * url-handlers.el (vc-registered): Explicitly disable VC for URL files.
77 * url.el (url-retrieve-synchronously): Don't exit precipitously when
78 fetching a file via ange-ftp.
80 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
82 * url-cookie.el (url-cookie-multiple-line): Fix spelling in docstring.
84 2005-05-19 Juanma Barranquero <lekktu@gmail.com>
86 * url-cookie.el (url-cookie-multiple-line):
87 Specify group and type in defcustom.
89 2005-05-06 Juanma Barranquero <lekktu@gmail.com>
91 * url-auth.el (url-register-auth-scheme):
92 * url-cookie.el (url-cookie-expired-p):
93 * url-dav.el (url-dav-process-date-property)
94 (url-dav-process-boolean-property, url-dav-process-DAV:status):
95 * url-http.el (url-http-chunked-encoding-after-change-function)
96 (url-http-wait-for-headers-change-function):
97 * url-ns.el (isInNet):
98 * url-parse.el (url-generic-parse-url):
99 * url-util.el (url-get-normalized-date): Replace `string-to-int'
100 by `string-to-number'.
102 2005-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
104 * url.el (url-retrieve-synchronously): Work around the fact that
105 url-http sometimes doesn't call the callback.
107 2005-04-04 Lute Kamstra <lute@gnu.org>
109 * url-handlers.el (url-handler-mode): Specify :group.
111 2005-02-26 James Cloos <cloos@jhcloos.com> (tiny change)
113 * url-history.el (url-have-visited-url): Don't barf if
114 url-history-hash-table is nil.
116 2005-02-14 Michael Welsh Duggan <md5i@cs.cmu.edu>
118 * url-http.el (url-http-parse-headers): Test url-automatic-caching.
120 2005-01-22 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
122 * url-http.el (url-http-parse-headers) <302>: Reset url-http-data
123 to nil, like for the 303 response.
125 2005-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
127 * url.el (url-retrieve-synchronously): Use accept-process-output rather
130 2005-01-03 Klaus Straubinger <ksnetz@arcor.de> (tiny change)
132 * url-http.el (url-http-handle-authentication):
133 Don't kill the current buffer.
135 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
137 * url-handlers.el: Don't `require' everything eagerly.
139 2004-11-30 Paul Pogonyshev <pogonyshev@gmx.net>
141 * url-http.el (url-http-handle-cookies): Bind `url-current-object'
142 to `url-http-cookies-sources' so that cookies are attributed to
144 (url-http): Make local variable `url-http-cookies-sources'.
146 2004-11-28 Andreas Schwab <schwab@suse.de>
148 * url-http.el (url-http-create-request): Don't add newline after
151 2004-11-20 Masatake YAMATO <jet@gyve.org>
153 * url.el (url-mm-callback): Delay the invocation
154 of `mm-destroy-parts'. Invoke `mm-destroy-parts'
155 when the buffer is killed.
157 2004-11-12 Masatake YAMATO <jet@gyve.org>
159 * url-mailto.el (url-mailto): Fix a typo in the comment.
161 2004-11-02 Masatake YAMATO <jet@gyve.org>
163 * url-imap.el (url-imap-open-host): Don't use
164 `string-to-int'. The port returned by `url-port'
165 is expected to be an integer.
167 * url-irc.el (url-irc): Ditto.
169 * url-news.el (url-news-open-host): Ditto.
171 * url-nfs.el (url-nfs-build-filename): Ditto.
173 2004-10-20 John Paul Wallington <jpw@gnu.org>
175 * url-gw.el (url-gateway-nslookup-host):
176 Use `set-process-query-on-exit-flag'.
178 2004-10-10 Lars Hansen <larsh@math.ku.dk>
180 * url-auth.el: Update header and footer.
182 * url-cache.el: Update header and footer.
184 * url-cid.el: Update header and footer.
186 * url-dired.el: Update header and footer.
188 * url-expand.el: Update header and footer.
190 * url-ftp.el: Update header and footer.
192 * url-gw.el: Update header and footer.
194 * url-imap.el: Update header and footer.
196 * url-irc.el: Update header and footer.
198 * url-misc.el: Update header and footer.
200 * url-news.el: Update header and footer.
202 * url-ns.el: Update header and footer.
204 * url-privacy.el: Update header and footer.
206 * url-proxy.el: Update header and footer.
208 * url-vars.el: Update header.
210 2004-10-16 Richard M. Stallman <rms@gnu.org>
212 * url.el (url-do-setup): Don't set url-passwd-entry-func.
214 * url-vars.el (url-passwd-entry-func): Var deleted.
215 (mm-mime-mule-charset-alist): Remove compatibility code for old Gnus.
216 (url-weekday-alist): Rename from weekday-alist.
217 (url-monthabbrev-alist): Rename from monthabbrev-alist.
218 (url-vars-unload-hook): Initialize hook var to hold the function.
220 * url-util.el (url-get-normalized-date): Use url-weekday-alist and
221 url-monthabbrev-alist.
223 * url-misc.el: Load cl at compile time.
225 * url-mailto.el: Don't load cl.
226 (url-mailto): Fix call to `push'.
228 * url-gw.el (url-open-telnet): Use read-passwd.
230 * url-auth.el (url-basic-auth, url-digest-auth): Use read-passwd.
232 2004-10-12 Simon Josefsson <jas@extundo.com>
234 * url-vars.el (url-gateway-method): Add new method `tls'.
236 * url-news.el (url-snews): Use nntp-open-tls-stream if
237 url-gateway-method is tls.
239 * url-ldap.el (url-ldap-certificate-formatter):
240 Use tls-certificate-information if ssl.el is not available.
242 * url-https.el (url-https-create-secure-wrapper): Use tls if ssl
245 * url-gw.el (url-open-stream): Support tls url-gateway-method.
246 (url-open-stream): Likewise.
248 2004-10-10 Lars Hansen <larsh@math.ku.dk>
250 * url-auth.el: Fix copyright notice.
252 * url-cache.el: Fix copyright notice.
254 * url-cookie.el: Fix copyright notice.
256 * url-dired.el: Fix copyright notice.
258 * url-file.el: Fix copyright notice.
260 * url-ftp.el: Fix copyright notice.
262 * url-handlers.el: Fix copyright notice.
264 * url-history.el: Fix copyright notice.
266 * url-irc.el: Fix copyright notice.
268 * url-mailto.el: Fix copyright notice.
270 * url-methods.el: Fix copyright notice.
272 * url-misc.el: Fix copyright notice.
274 * url-news.el: Fix copyright notice.
276 * url-nfs.el: Fix copyright notice.
278 * url-parse.el: Fix copyright notice.
280 * url-privacy.el: Fix copyright notice.
282 * url-vars.el: Fix copyright notice.
284 * url.el: Fix copyright notice.
286 * url-util.el: Fix copyright notice.
288 2004-10-06 Stefan Monnier <monnier@iro.umontreal.ca>
290 * url-handlers.el (url-insert-file-contents): Use the URL to decide the
291 encoding, not the buffer-file-name (which might not even exist).
293 2004-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
295 * url-handlers.el (url-insert-file-contents): Decode contents.
297 2004-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
299 * url-util.el (url-debug): Use with-current-buffer.
301 * url-nfs.el (url-nfs-file-attributes): Add id-format parameter.
302 (url-nfs-create-wrapper): Use new backquote syntax.
304 * url-https.el (url-https-file-attributes): Add id-format param.
306 * url-http.el (url-http-head-file-attributes)
307 (url-http-file-attributes): Add id-format parameter.
309 * url-handlers.el: Use new find-file-hook.
310 (url-file-attributes): Add id-format parameter.
312 * url-file.el (url-file-create-wrapper): Use new backquote syntax.
313 (url-file-file-attributes): Add id-format parameter.
315 * url-dav.el: Use with-current-buffer.
316 (url-dav-process-response): Fix regexps and spurious quote.
317 (url-dav-file-attributes): Add id-format param.
319 2004-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
321 * url.el (url-retrieve): Use with-current-buffer.
323 * url-http.el (url-http-parse-headers, url-http-file-exists-p):
324 Remove unused var `version'.
326 * url-handlers.el (url-handler-mode): New minor mode.
327 (url-setup-file-name-handlers): Remove.
329 2004-04-12 John Paul Wallington <jpw@gnu.org>
331 * url-cookie.el (url-cookie-handle-set-cookie): Replace calls
332 to obsolete `assoc-ignore-case' with calls to `assoc-string'.
334 2004-04-11 Dave Love <fx@gnu.org>
336 * url-mailto.el (url-mailto):
337 * url-history.el (url-history-setup-save-timer):
338 * url-cookie.el (url-cookie-setup-save-timer): Avoid warnings.
340 * url-file.el (url-file-build-filename): Don't use
343 * url-auth.el (url-register-auth-scheme): Fix `format' call.
345 * url-about.el (url-scheme-registry): Defvar.
346 (url-about): Use text/plain.
348 * url-vars.el (cl): Don't require.
350 (url-bug-address): Use bug-gnu-emacs.
352 * url-util.el (url-hexify-string): Don't give multibyte error
354 (mail-header-extract): Autoload.
356 * url-parse.el: Doc fixes.
358 * url-ldap.el (ldap): Require.
359 (url-ldap): Fix `format' call.
360 (url-ldap-certificate-formatter): Avoid warning.
362 * url-https.el (url-https-create-secure-wrapper): Use modern backquotes.
364 * url-dav.el (url-dav-rename-file): Fix args of `signal'.
365 (url-intersection): New.
366 (url-dav-supported-p): Use it.
367 (url-dav-save-resource): Declare url-http-response-status special.
369 * url-cache.el (url-util): Require.
371 2004-04-10 Miles Bader <miles@gnu.org>
373 RCS keyword removal (only non-comment changes are enumerated here):
375 * url-vars.el (url-version): Use the constant string "Emacs"
376 instead of calculating something from the RCS `State' keyword
377 [the latter is almost entirely useless anyway].
379 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
382 * url-parse.el: Don't require url-auto.
384 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
386 * url: Imported the URL package from its own CVS repository into Emacs.
388 ===========================================================================
389 ===========================================================================
390 Copy of the ChangeLog file from URL's own CVS repository:
391 ===========================================================================
392 ===========================================================================
394 2003-07-16 Dave Love <fx@gnu.org>
396 * lisp/url.el (url-retrieve-synchronously): Revert last change.
399 2003-06-26 Sam Steingold <sds@gnu.org>
401 * lisp/url-handlers.el (url-handlers-create-wrapper): Do not call
402 method on invalid urls.
404 2003-05-29 Dave Love <fx@gnu.org>
406 * lisp/url.el (url-retrieve-synchronously): Use sleep-for, not
407 sit-for. From monnier@gnu.org.
409 2002-11-04 Walter C. Pelissero <walter@pelissero.org>
411 * lisp/url-methods.el (url-scheme-register-proxy): Make sure to convert
412 port numbers to integers when creating the URL objects for proxies.
414 2002-10-29 William M. Perry <wmperry@gnu.org>
416 * lisp/url-http.el (url-http-parse-headers): When doing a
417 redirect, some broken software (sourceforge) sends a redirect to
418 '/', which is blatantly illegal (see section 14.30 of the HTTP/1.1
419 specification). I wish we could deal with such lame software
420 appropriately (spank the authors), but this is the web, so we have
421 to kow-tow to the servers.
423 2002-10-27 William M. Perry <wmperry@gnu.org>
425 * lisp/url-http.el (url-http-create-request): If we are talking to
426 the default port for a the selected protocol, do NOT send the port
427 in the HOST header. This fixes the login page at sourceforge.
429 2002-09-17 William M. Perry <wmperry@gnu.org>
431 * lisp/url-http.el (url-http-handle-cookies): New function to deal
433 (url-http-parse-headers): Call `url-http-handle-cookies' here so
434 that cookie additions and deletions get handled immediately.
435 This is so that sites that set cookies while doing redirects
436 (my.yahoo.com, outlook web access, etc) work. This should also
437 fix sites that delete cookies on invalid access or other error
438 pages the user might not actually see.
439 (url-http-parse-headers): Silently convert non-HEAD and non-GET
440 methods to GET in redirects. Too many web sites do this now, and
441 it is just likely to confuse users.
443 2002-05-17 Dave Love <fx@gnu.org>
445 * texi/url.txi: Start making it vaguely useful.
447 * texi/Makefile.in (install): Cope with Debian install-info.
448 From Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann).
450 2002-04-22 Dave Love <fx@gnu.org>
452 * lisp/url-misc.el (man): Autoload to avoid warning.
453 (url-man): Don't require man here.
454 (url-data): Generalize in line with the RFC.
456 * lisp/url-gw.el (url-open-stream): Remove obsolete `tcp' case.
458 * lisp/url-vars.el: Doc fixes.
459 (url-mime-charset-string): New function.
460 (url-mime-charset-string): Use it to set the variable.
461 (url-set-mime-charset-string): New function.
462 (set-language-environment-hook): Use it.
463 (url-vars-unload-hook): New function.
465 * lisp/url-cookie.el (url-header-comparison): Delete.
466 (url-cookie-handle-set-cookie): Use assoc-ignore-case to avoid assoc*.
467 (url-cookie-save-interval): Make value agree with doc.
469 * lisp/url.el: Doc fixes.
470 (url-mm-callback): Don't call mm-destroy-parts immediately for
471 external viewing -- set up a process sentinel.
473 2002-02-02 William M. Perry <wmperry@gnu.org>
475 * lisp/Makefile.in (SOURCES): Remove mule-sysdp.el from the build rules.
477 2001-12-12 William M. Perry <wmperry@gnu.org>
479 * lisp/url-vars.el (url-nonrelative-link): Patch from Stefan
480 Monnier to use ` instead of ^ to match the relative link.
482 2001-12-10 William M. Perry <wmperry@gnu.org>
484 * lisp/url-dav.el (url-dav-file-attributes): Fix bad call to
485 plist-get (reversed args).
487 * lisp/url-file.el (url-file-build-filename): Make sure that we
488 have a parsed URL in this function.
490 2002-01-22 Dave Love <fx@gnu.org>
492 * lisp/url-cache.el (url-cache-file-writable-p): Doc fix.
494 * lisp/url-imap.el (url-imap): Maybe disable multibyte.
495 Bind coding-system-for-read. Require mm-util.
497 * lisp/url.el (url-do-setup): Use (featurep 'xemacs).
499 * lisp/mule-sysdp.el: Removed (obsolete).
501 2001-12-09 William M. Perry <wmperry@gnu.org>
503 * lisp/url-dav.el (url-dav-delete-something): Utility macro to
504 remove an arbitrary resource.
505 (url-dav-delete-directory): Use it.
506 (url-dav-delete-file): Ditto.
507 (url-dav-make-directory): New function.
508 (url-dav-rename-file): New function.
509 (url-dav-register-handler): New function to easily register a
510 WebDAV-specific file-name-handler operation.
511 (url-dav-file-name-all-completions, url-dav-file-name-completion):
512 New functions that allow file-name completion for WebDAV resources.
514 2001-12-08 William M. Perry <wmperry@gnu.org>
516 * lisp/url-dav.el (url-dav-directory-files): New function to
517 mimic `directory-files' for WebDAV.
518 (url-dav-delete-directory): New function to mimic
519 `delete-directory' for WebDAV.
521 2001-12-06 William M. Perry <wmperry@gnu.org>
523 * lisp/url-dav.el (url-dav-process-DAV:locktoken): Parse the
524 DAV:locktoken hrefs into a usable format.
525 (url-dav-process-response): Use an unwind-protect to make sure
526 that we clean up the buffer, even if there is a parsing error.
527 (url-dav-request): New function to act as the main entry point for
528 making DAV requests. Takes care of building the XML document with
529 appropriate namespaces, depth, etc, and parses the results.
530 (url-dav-get-properties): Use new url-dav-request function.
531 This is now just a thin wrapper around that to use PROPFIND and set any
532 extra properties we are looking for.
533 (url-dav-unlock-resource): New function to release a lock given a
534 URL and a lock-token.
535 (url-dav-process-DAV:getlastmodified)
536 (url-dav-process-DAV:creationdate)
537 (url-dav-process-DAV:iscollection)
538 (url-dav-process-DAV:ishidden): Fix typos! Its url-dav-*, not
540 (url-dav-active-locks): New function to get a list of all the
541 active locks for a resource.
542 (url-dav-save-resource): New function to actually save a resource
543 using the PUT method. I can now successfully save files to an
544 HTTP server with some manual steps from a lisp-interaction buffer.
546 * lisp/url-http.el (url-http-wait-for-headers-change-function):
547 Special case the 204/205 response codes. Some servers do not
548 send back a 0 content-length for these, and we would hang.
549 (url-http-parse-headers): Mark 204/205 response codes as
550 'successful' so that the callbacks get activated.
551 (url-http-options): Fix unbound variable usage.
553 * lisp/url-dav.el: Added full copyright information.
554 (url-dav-process-response): Make sure that we create a DAV:status
555 property when parsing a singleton response.
556 (url-dav-file-attributes): If the properties returned did not have
557 a succesful HTTP response code, then ignore them and use the
558 HEAD-based attributes.
560 * lisp/vc-dav.el: Added full copyright information.
562 * lisp/url-dav.el (url-dav-process-supportedlock-property):
563 Deal with text nodes in DAV:supportedlock nodes.
564 (url-dav-file-attributes-mode-string): This now gets the entire
565 property list instead of just the DAV:supportedlock node.
566 (url-dav-file-attributes): Make sure to pass the whole list in.
567 (url-dav-file-attributes-mode-string): Now properly sets do 'd' mode.
568 (url-dav-file-attributes-mode-string): Now uses the Apache mod_dav
569 'executable' bit to set the 'x' mode. See `mod_dav's custom
570 properties' at http://www.webdav.org/mod_dav/ for more details.
571 (url-dav-find-parser): New function to find the proper parser for
572 a node-type. Looks for
573 url-dav-process-XXX (url-dav-process-DAV:prop), otherwise falls
574 back to using url-dav-node-text. Caches the results on the nodes
576 (url-dav-dispatch-node): Utility routine to call a nodes handler easily.
577 (url-dav-process-*): Rename most of the handlers and made them
578 use url-dav-dispatch-node where appropriate.
579 (url-dav-process-DAV:prop): Instead of using the dav-data-type
580 property to dispatch the node, now uses dav-dispatch-node so that
581 it is easy to add parsers for special nodes.
582 (url-dav-process-DAV:depth, url-dav-process-DAV:resourcetype)
583 (url-dav-process-DAV:locktype, url-dav-process-DAV:lockscope)
584 (url-dav-process-DAV:getcontentlength)
585 (url-dave-process-DAV:getlastmodified)
586 (url-dave-process-DAV:creationdate)
587 (url-dave-process-DAV:iscollection)
588 (url-dave-process-DAV:ishidden): Aliases for the generic
589 url-dav-process-foo-property routines.
590 (url-dav-process-DAV:activelock)
591 (url-dav-process-DAV:lockdiscovery): Can now correctly parse
592 DAV:lockdiscovery nodes, so that we can find out who has a
593 resource locked and properly parse the reponse to a LOCK request.
594 (url-dav-process-DAV:status): Now parses ou the numeric status
595 from the HTTP response line.
596 (url-dav-process-response): New function to handle all the
597 parsing of an XML response from WebDAV. This handles all the
598 logic of checking the response content-type to make sure it is
599 XML, parses the tree, and interprets the tree.
600 (url-dav-process-response): Make sure that all responses look
601 like a DAV:multistatus response, even if we get a singleton
602 response back. This will just make the upper layer logic simpler.
603 (url-dav-get-properties): New optional argument NAMESPACES that
604 specifies what namespaces to use in the XML request.
605 (url-dav-get-properties): Got rid of the D: namespace in
606 requests. It doesn't save that much space. Just use DAV:
607 (url-dav-lock-identifier): New variable that should hold a URI
608 pointing to contact information for the user. This will be used
609 as the contents of the DAV:owner/DAV:href tag to identify the
610 owner of a LOCK when requesting it. This will be shown to other
611 users when the DAV:lockdiscovery property is requested, so make
612 sure you are comfortable with it leaking to the outside world.
613 (url-dav-lock-resource): New function to LOCK a dav resource.
615 2001-12-05 William M. Perry <wmperry@gnu.org>
617 * lisp/url-dav.el (url-dav-get-properties): New argument
618 ATTRIBUTES that allows you to ask for specific properties instead
619 of getting all properties via DAV:allprop.
621 * lisp/url-http.el (url-http-real-basic-auth-storage):
622 New variable for normal HTTP basic authentication.
623 (url-http-proxy-basic-auth-storage): New variable for HTTP proxy
624 basic authentication.
625 (url-http-handle-authentication): Follow new semantics for
626 url-basic-auth-storage.
628 * lisp/url-auth.el (url-basic-auth-storage): Change meaning of
629 this variable. It is now a symbol pointing to where we really
630 want to store the authorization information. This fixes proxy
631 auth and normal basic auth because of some local bindings that were
632 making it impossible to store the credentials in the global binding.
633 (url-basic-auth): Make sure we dereference url-basic-auth-storage
636 * lisp/url-util.el (url-debug): Add new types 'dav and
637 'retrieval to the customization list.
639 * lisp/url.el (url-retrieve-synchronously): Put in some debugging
642 * lisp/url-http.el (url-http-head-file-attributes): Rename old
643 url-http-file-attributes so that we can have a smarter one that
644 tries WebDAV first, then HEAD.
645 (url-http-file-attributes): New smart version that tries WebDAV first.
646 (url-http-options): New function that returns information gleaned
647 from an OPTIONS request for a URL. Returns a property list
648 returning the methods supported for the resource, what DAV and
649 DASL levels are supported, p3p information, and whether
650 byte-ranges are supported or not.
651 (url-http-wait-for-headers-change-function): If we got a 0-byte
652 content-length, activate the callback immediately.
653 (url-http-wait-for-headers-change-function): For content-length
654 responses with actual body-data in the chunk we are handling, call
655 url-http-content-length-after-change-function with the remaining
656 data. Otherwise we can deadlock if the headers and the entire
657 body exist arrive in one chunk.
659 * lisp/url-dav.el: New file to contain the WebDAV
660 (http://www.webdav.org/) implementation.
661 (url-dav-supported-p): Cheap way to figure out whether we will be
662 able to do DAV at all. We rely on the XML parser expanding
663 namespaces for us, and currently you need a patched version of
664 xml.el to do this. Patch sent to author for consideration.
665 (url-dav-file-attributes): Much more complete version of
666 `file-attributes' using the WebDAV PROPFIND method. Now correctly
667 finds out whether something is a directory (a WebDAV collection),
668 the last modification time, and permissions (based on the
669 DAV:supportedlock information).
670 (url-dav-get-properties): Generic interface to get WebDAV
671 properties for a URL. Can specify an optional `depth' parameter
672 to tell the web server how many directory (collection) levels to
673 recurse when retrieving the property lists. Returns an assoc
674 list keyed off of the resource, the cdr of which is a property list.
675 (url-dav-datatype-attribute): We support the XML-Data note
676 (http://www.w3.org/TR/1998/NOTE-XML-data) to figure out what the
677 datatypes of attributes are. Currently only date, dateTime, int,
678 number, float, boolean, and uri are supported.
680 2001-12-04 William M. Perry <wmperry@gnu.org>
682 * lisp/url-handlers.el (file-name-absolute-p): New hooked
683 version. If the filename matches our regexp, then it is always
684 absolute, so just return `t'.
685 (expand-file-name): New hooked version. If the fragment is an
686 absolute file or URL, then expand it relative to '/'.
687 (url-handler-regexp): New regexp for specific schemes that we
688 want the file-name-handlers to work off of.
689 (url-setup-file-name-handlers): Use it when installing the handlers.
691 * lisp/url-http.el (url-http-find-free-connection): Better logging
692 about whether we are reusing an existing connection or not.
694 * lisp/url-methods.el (url-scheme-register-proxy): Fix bad call
695 to string-match instead of match-string (and with reversed
698 * lisp/url-http.el (url-http-debug): Change to now use the
699 generic url-debug function to do the actual logging. Still a
700 separate function so that we can do our magic on the network
701 connection if the user quits while we are downloading.
703 * lisp/url-handlers.el (url-file-handler): Now logs the result of
704 the hooked or real call.
706 * lisp/url-util.el (url-debug): New function for generic debug logging.
708 2001-11-28 William M. Perry <wmperry@gnu.org>
710 * lisp/url-imap.el (url-imap-open-host): Use backquote.
711 (url-imap): Now switches to 'login as the imap authenticator if
712 the URL provides a username and password.
714 * lisp/url-handlers.el (url-setup-file-name-handlers): Use cl &
715 push to replace some strange logic in here.
716 (url-run-real-handler): New function to run the real hooks in
717 case we get a false positive or an operation that we do not
718 support. The old way disabled _ALL_ file-name-handlers when
719 we hit something we didn't understand - this disables JUST us.
720 (url-file-handler): Remove the logic about removing the leading
721 '/' off of the first argument... it may not be safe to always
722 assume that the first argument is the one we are acting on -
723 `default' is the second argument for expand-file-name for example.
724 (url-setup-file-name-handlers): Use url-nonrelative-link
725 directly. This means that you must type in the URL directly
726 without prefixing it with a '/'.
728 (gnus-cache-articles-in-group "nnml+mail:comp.emacs-devel")
730 Ends up calling (expand-file-name "nnml+mail:comp.emacs-devel" ...)
731 which activates us (because 'nnml+mail' _is_ a valid scheme name
732 for a URI). We get thoroughly confused and end up returning
733 `nil' when we shouldn't.
735 2001-11-26 William M. Perry <wmperry@gnu.org>
737 * lisp/url-handlers.el (file-writable-p): Add NULL handler for
738 this so that visiting a URL directly will work.
739 (file-symlink-p): Ditto.
740 (url-insert-file-contents): If `visit' is non-nil then make sure
741 we set buffer-file-name. After these changes you can visit
742 http://www.gnu.org/ directly from the minibuffer.
743 (url-insert-file-contents): When inserting the file contents,
744 use a save-excursion so that we behave just like the original.
746 2001-11-25 William M. Perry <wmperry@gnu.org>
748 * lisp/url-util.el (url-hexify-string): Fix bad use of mapconcat.
750 2001-11-24 William M. Perry <wmperry@gnu.org>
752 * lisp/url-about.el (url-about): New loader scheme to handle
753 about:foo URLs. Automatically tries to find a `url-about-foo'
754 function to display the actual data.
755 (url-about-protocols): Implement about:protocols
757 * lisp/url-http.el (url-http): Make sure that we signal an error
758 when we cannot open a network connection for whatever reason.
759 Before, it would just silently clean up after itself and the user
760 got absolutely no indication that an error had occured. If the
761 error should truly be ignored, the caller should do that for us.
762 (url-http-chunked-encoding-after-change-function): Doh! Need to
763 user marker-position in some log messages now that
764 url-http-chunked-start is a marker.
766 2001-11-22 William M. Perry <wmperry@gnu.org>
768 * lisp/url-https.el: Fixed definition of url-https - was using the
769 wrong signature. Too much cut & paste.
770 (url-https-create-secure-wrapper): Fix so that url-https works
771 at all. Was not taking a null `method' into account when calling
772 the wrapped function so url-https tried to call url-http-nil. *sigh*
775 (url-http-chunked-encoding-after-change-function): Add some
776 feedback when not debugging about what content-type and chunk # we
778 (url-http-chunked-encoding-after-change-function): Use a marker
779 for url-http-chunked-start so that we can safely delete the
780 chunk-tokens instead of just marking them as invisible.
781 (url-http-chunked-encoding-after-change-function): Actually delete
782 the chunk-tokens. Now that we are not run from 'real'
783 after-change functions, this is safe, and the right thing to do.
784 Otherwise the HTML parser still saw them and inferred all sorts of
785 bad things about the document (ie: nothing had a title!)
787 2001-11-21 William M. Perry <wmperry@gnu.org>
789 * lisp/url-http.el (url-http-debug): Document this variable.
790 People other than I might want to use it.
791 (url-http-debug): Put some code in here to check quit-flag
792 directly. When the chunked encoding went into a tight spin, your
793 Emacs would be wedged forever. This short-circuits all the
794 after-change functions and signals an error.
795 (url-http-debug): If url-http-debug is non-nil and non-t, then log
796 the debug messages using `message' as well as sending them to the
798 (url-http-chunked-encoding-after-change-function): Got rid of the
799 no-initial-crlf. Had an epiphany and I can just infer this from
800 url-http-chunked-counter being 0.
801 (url-http-chunked-encoding-after-change-function): Move the debug
802 statement about reading chunk #foo into the loop so that each
803 chunk will have a log message associated with it.
804 (url-http-chunked-encoding-after-change-function): Make sure to
805 set read-next-chunk to nil when the regular expression match fails
806 to fire. Otherwise we could loop forever.
807 (url-http-chunked-encoding-after-change-function): Tweak the
808 regular expression to be a little less greedy when looking for a chunk.
809 (url-http-wait-for-headers-change-function): Remove the last
810 argument when calling
811 url-http-chunked-encoding-after-change-function. It is no longer
812 needed. I should use my brain sometime.
814 * lisp/url-vars.el (and): Fix feature test for xemacs and
815 coding-system-list behaviour.
818 (url-http-chunked-encoding-after-change-function): Add optional
819 no-initial-crlf flag that modifies the regular expression.
820 This is only set from url-http-wait-for-headers-change-function so that
821 the initial CRLF in the HTTP headers is not swallowed.
822 (url-http-chunked-encoding-after-change-function): Fix a few
823 off-by-one errors by using (match-end 0) instead of 1.
824 (url-http-chunked-encoding-after-change-function): Add a few
825 url-http-debug calls to help track down problems in the chunked
827 (url-http-chunked-encoding-after-change-function): The chunk
828 reading in here is now in a while loop so that if Emacs feeds us a
829 chunk of data that happens to contain more than one 'chunk'
830 delimiter, we behave correctly.
831 (url-http-wait-for-headers-change-function): Make sure that we
832 pass no-initial-crlf to
833 url-http-chunked-encoding-after-change-function when passing
834 initial data to the decoder.
835 (url-http-generic-filter): url-http-debug statement so we can tell
836 when/where our after-change-functions are being called.
838 2001-10-11 Dave Love <fx@gnu.org>
840 * lisp/url-handlers.el: Doc fixes.
841 (string-match): Use (featurep 'xemacs).
843 * lisp/url-methods.el (url-scheme-get-property): Avoid `mapc'.
845 * lisp/url-proxy.el (url-find-proxy-for-url): Avoid `pop'.
847 * lisp/url-vars.el (url-running-xemacs): Delete.
848 (url-gateway-unplugged): New variable.
850 * lisp/url-gw.el (url-open-stream): Use url-gateway-unplugged.
851 Comment out OS/2 stuff.
853 2001-10-05 Dave Love <fx@gnu.org>
855 * lisp/url-mailto.el (url-mailto): Don't send auto-generated mail
856 without confirmation.
858 2001-10-02 Dave Love <fx@gnu.org>
860 * lisp/url-http.el (url-http-create-request): Check cache for
861 proxy-obj, if defined, rather than url.
862 (url-http): Use dolist, not mapc (runtime cl dependency).
864 * lisp/url-methods.el: Maybe require cl at runtime.
865 (url-scheme-register-proxy): Fix fetching from environment.
866 Don't concat a number.
868 2001-10-01 Dave Love <fx@gnu.org>
870 * lisp/url-parse.el: Use modern backquote syntax.
872 * lisp/url-vars.el (url-uncompressor-alist): Add bzip2.
873 (url-mail-command): Prefer compose-mail.
874 (tcp-binary-process-input-services): Comment out.
875 (url-working-buffer): New constant.
877 * lisp/url-util.el (url-extract-mime-headers): New function.
879 * lisp/url-mailto.el (url-mailto): Set source-url. Don't add
882 2001-09-20 Dave Love <fx@gnu.org>
884 * lisp/url-http.el (url-http-create-request): Don't concat a number.
886 2001-06-05 Dave Love <fx@gnu.org>
888 * lisp/url.el (url-do-setup): Doc fix. Don't try to frob
889 tcp-binary-process-input-services. Remove function wrapper for lambda.
890 (url-retrieve): Barf with sensible message if url-type is null.
892 * lisp/url-http.el (url-http): Don't try to set process
893 coding-system here -- done in url-gw.
895 * lisp/url-gw.el (url-gw-inhibit-code-conversion): Remove.
896 (url-open-stream): Bind coding-system-for{read,write} when setting
897 up the connexion. Don't call url-gw-inhibit-code-conversion.
899 2001-05-24 William M. Perry <wmperry@gnu.org>
901 * lisp/url.el (url-retrieve-synchronously): Avoid accept-process-output
902 in url-retrieve-synchronously.
904 2001-05-23 William M. Perry <wmperry@gnu.org>
906 * lisp/url.el (url-retrieve-synchronously): Don't put a timeout on
907 accept-process-output. This is evidently causing hangs in Emacs
908 21 when viewing complex pages with images or stylesheets.
909 www.yahoo.com is now viewable.
911 * lisp/url-gw.el (url-open-stream): Avoid using mule-sysdp
912 (mule-inhibit-code-conversion) and just have a local function that
913 does this minimal cruft.
914 (url-gw-inhibit-code-conversion): New function to turn off code
915 conversion in a process.
917 2001-05-22 William M. Perry <wmperry@gnu.org>
919 * lisp/url.el (url-retrieve-synchronously): Use lexical-let so
920 that we can allow multiple asynch retrievals to happen at once.
921 (url-retrieve-synchronously): Use a much smaller timeout when
922 doing the accept-process-output. This gets rid of the long delays
923 if you are on a fast net connection and retrieve small documents
924 that finish asynchronously before the first accept-process-output
925 can be run. All hail broadband and 100Mb in the house!
926 (url-retrieve-synchronously): Add documentation for this function.
927 (url-retrieve): Ditto.
930 * lisp/url-vars.el: Replaced `HTTP/1.0' with just `HTTP' in some
931 documentation strings. Ok, so I'm anal.
933 * lisp/url-methods.el (url-scheme-methods): Add default methods
934 for file-directory-p and file-truename.
936 2001-05-22 Dave Love <fx@gnu.org>
938 * lisp/url-auth.el (url-warn): Autoload.
940 * lisp/url-proxy.el (url-warn): Autoload.
942 * lisp/url-nfs.el: Fix `file-truname' typo.
944 * lisp/url-news.el: Require cl when compiling.
945 (url-warn, gnus-group-read-ephemeral-group): Autoload.
946 (url-nntp-default-port, url-news-default-port, url-nntp): Delete.
947 (url-news-fetch-newsgroup): Declare gnus-group-buffer special.
949 * lisp/url-util.el (mule-decode-string): Don't autoload.
950 (url-hexify-string): Just barf on multibyte characters.
951 (url-generate-unique-filename): New function.
953 * lisp/url-file.el (url-file): Use url-generate-unique-filename,
954 not mm-generate-unique-filename.
956 * lisp/url-http.el: Declare things special in various places.
957 (url-http-activate-callback): Don't set
958 url-http-real-after-change-function.
960 2001-05-22 William M. Perry <wmperry@gnu.org>
962 * lisp/url-http.el (url-http-attempt-keepalives): New variable to
963 control whether we try to do keep-alives for our connections.
964 (url-http-version): New variable to control whether we advertise
965 ourselves as an HTTP/1.1 client or not. This can be useful for
966 avoiding chunked encoding, and other 1.1 features we may not have
967 fully implemented yet.
968 (url-http-create-request): Honor the new variables.
970 2001-05-21 Dave Love <fx@gnu.org>
972 * lisp/url-vars.el (mm-mime-mule-charset-alist): Don't readjust it
974 (url-mime-charset-string): Don't reverse the list before sorting.
976 2001-05-17 William M. Perry <wmperry@gnu.org>
978 * lisp/url-http.el (url-http-generic-filter): Avoid using
979 after-change-functions natively. There are just too many ways
980 that this screws up in Emacs 21. Use a filter function on the
981 process instead, and call the hook on
982 url-http-after-change-function manually. [Actually, it will work
983 in Emacs 21, but one problem that has been fixed in Emacs 21
984 exists in Emacs 20. -- fx]
986 * lisp/url-vars.el (url-mime-charset-string): sort-coding-systems
987 does not exist on older versions of Emacs, or any version of
988 XEmacs. Do not call it unless it is bound.
990 2001-05-17 Dave Love <fx@gnu.org>
992 * lisp/url-http.el (url-http-create-request): Fix non-GET requests.
994 2001-05-16 Dave Love <fx@gnu.org>
996 * lisp/url-vars.el: Doc fixes. Require mm-util.
997 (url-mime-charset-string): New variable.
999 * lisp/url-http.el: Doc fixes.
1000 (url-http-create-request): Rearrange how we assemble the request.
1001 Avoid generating bogus requests with an empty real-fname.
1002 (url-http-handle-authentication): Declare status and success special.
1003 (url-http): Call mm-disable-multibyte. Set process buffer's
1004 coding systems to binary.
1006 * lisp/url-misc.el (url-data): Call mm-disable-multibyte.
1008 * lisp/url-file.el: Don't require mule-sysdp. Fix `file-truname' typo.
1009 (url-file-find-possibly-compressed-file): Doc fix.
1010 (url-file): Bind coding-system-for-read. Call mm-disable-multibyte.
1012 * lisp/url-cache.el: Don't require mule-sysdp.
1013 (url-store-in-cache): Avoid mule-write-region-no-coding-system.
1015 * lisp/url.el: Don't require mule-sysdp.
1016 (url-retrieve): Only set text properties if url is a string.
1018 2001-05-14 Dave Love <fx@gnu.org>
1020 * lisp/url-http.el (url-http-create-request):
1021 Declare proxy-object, proxy-info special.
1022 (url-http-handle-authentication): Declare success special.
1024 2001-05-12 Dave Love <fx@gnu.org>
1026 * lisp/url-http.el: Revert last change.
1028 2001-05-10 Dave Love <fx@gnu.org>
1030 * lisp/url-http.el (url-http-generic-after-change-function):
1031 Make it permanent-local.
1033 2001-05-05 Dave Love <fx@gnu.org>
1035 * lisp/url-http.el: Autoload some functions.
1036 (cl): Require when compiling.
1037 (url-http-extra-headers): Defvar when compiling.
1038 (url-http): Treat after-change-functions as a local hook.
1040 * lisp/url-history.el (url-parse): Require.
1041 (url-do-setup): Autoload.
1043 * lisp/url-gw.el: Require url-vars. Autoload some functions.
1045 * lisp/url-file.el: Require mailcap. Require cl when compiling.
1046 Use (featurep 'xemacs).
1047 (url-file-build-filename): Bind pos-index.
1048 (url-file): Call url-find-file-dired, not url-dired-find-file.
1050 * lisp/url-dired.el: Add copyright notice. Autoload some functions.
1051 (url-dired-minor-mode-map): Use (featurep 'xemacs).
1052 (url-dired-find-file-mouse): Use mouse-set-point, not event-point.
1053 (url-find-file-dired): Rename from one version of url-dired-find-file.
1055 * lisp/url-cid.el: Don't require widget. Require mm-decode
1058 * lisp/url-util.el: Autoload mule-decode-string,
1059 timezone-parse-date, timezone-make-date-arpa-standard.
1060 (url-unreserved-chars): Fix list per RFC 2396.
1061 (url-hexify-string): Maybe string-make-unibyte.
1063 * lisp/url-news.el: Require nntp.
1065 * lisp/url-imap.el: Require cl when compiling. Require nnimap
1068 2001-05-04 Dave Love <fx@gnu.org>
1070 * lisp/url-handlers.el (url-file-local-copy): Use make-temp-file,
1071 not non-existent mailcap-generate-unique-filename.
1073 * lisp/url-privacy.el: Require url-vars. Require cl when compiling.
1075 * lisp/url-parse.el: Require url-vars.
1076 Autoload url-scheme-get-property.
1078 * lisp/url-nfs.el: Require cl when compiling. Test for XEmacs
1081 * lisp/url-mailto.el: Require cl when compiling.
1083 * lisp/url-cookie.el (url-cookie-handle-set-cookie):
1084 Call url-parse-args, not url-util-parse-args.
1086 * lisp/url-cache.el (url-cache-expired): Remove bogus `return'.
1088 2001-04-09 Dave Love <fx@gnu.org>
1090 * lisp/mule-sysdp.el (mule-detect-coding-version)
1091 (mule-code-convert-region, mule-inhibit-code-conversion)
1092 (mule-write-region-no-coding-system, mule-encode-string)
1093 (mule-decode-string, mule-truncate-string)
1094 (mule-find-charset-region, mule-coding-system-name)
1095 (mule-find-coding-system, mule-make-iso-character): Grok Mule 5.0.
1096 [There must be a better way.]
1097 (mule-coding-system-p, string-width): Use defalias.
1099 2001-01-03 Sam Steingold <sds@gnu.org>
1101 * lisp/url-http.el (url-http-wait-for-headers-change-function):
1102 set `url-http-end-of-headers' to 0 for HTTP 0.9
1104 2001-01-02 Sam Steingold <sds@gnu.org>
1106 * lisp/url-auth.el (provide): `url-auth', not `urlauth'
1108 2000-12-22 Dave Love <fx@gnu.org>
1110 * lisp/url-history.el (url): Don't require (to avoid recursion).
1111 (cl): Require when compiling.
1113 * lisp/url-http.el (url-auth): Require.
1114 (url-http-handle-authentication): Fix typo.
1116 * lisp/url-cookie.el (url-cookie-setup-save-timer): Fix typo.
1118 2000-12-20 Dave Love <fx@gnu.org>
1120 * lisp/url.el: Require mm-decode, mm-view when compiling.
1121 <not (fboundp 'puthash)>: Define puthash and
1122 autoload other has functions rather than using cl-...hash.
1125 * lisp/url-ns.el, lisp/url-methods.el, lisp/url-http.el:
1126 Avoid cl-...hash functions.
1128 * lisp/url-history.el: Avoid cl-...hash functions.
1131 * lisp/url-gw.el, lisp/url-cookie.el: Require cl only when compiling.
1133 2000-10-03 William M. Perry <wmperry@aventail.com>
1135 * lisp/url-util.el (url-get-url-at-point): Guard against 'url'
1136 getting set to nil due to bad string matching. Subsequent matches
1137 would then choke because we passed string-match a nil.
1139 * lisp/url-http.el (url-http-parse-headers): Need to make the
1140 connection as 'free' when we get a 304 response (found in cache),
1141 or when a keep-alive conneection timed out, it would re-parse the
1142 headers and dispatch to the callback again. Eek.
1144 2000-10-02 William M. Perry <wmperry@aventail.com>
1146 * lisp/url-http.el (url-http-chunked-encoding-after-change-function):
1147 implement chunked transfer-coding.
1148 (url-http-create-request): We can now advertise ourselves as a 1.1
1151 2000-07-28 Sam Steingold <sds@gnu.org>
1153 * lisp/url-methods.el (url-scheme-default-loader): `callback' and
1154 `cbargs' are optional args (for calling from w3).
1155 (url-scheme-register-proxy): Typos fixes: `url-match' replaced
1156 with `string-match' and `protocol' with `scheme'.
1158 2000-07-18 Sam Steingold <sds@gnu.org>
1160 * lisp/url-handlers.el (require 'url): For url-retrieve-synchronously.
1161 * lisp/url-history.el (url-history-save-interval): Avoid circularity.
1163 2000-07-10 William M. Perry <wmperry@aventail.com>
1165 * lisp/mule-sysdp.el (mule-make-iso-character): If we are not in
1166 mule, and the character requested is > 255, then return "~"
1167 instead of letting whoever call us signal an error when they try
1168 to insert the character.
1169 (mule-make-iso-character): Also wrap the whole thing in a
1170 condition case and return "~" on error, in case make-char bombs on us.
1172 * lisp/url-cid.el (url-cid): Fix stupid mistake in the loader
1175 * lisp/url-util.el (url-display-percentage): New routine that uses
1176 the progress bar under XEmacs if available. Looks very sexy under
1177 XEmacs/GTK hacked to use the GNOME statusbar.
1180 (url-http-content-length-after-change-function): Use new function
1181 url-display-percentage instead of url-lazy-message.
1183 2000-01-27 William M. Perry <wmperry@aventail.com>
1185 * lisp/url-file.el (url-file-build-filename): Work around for
1186 differences in ange-ftp / efs handling of port numbers other than 21.
1188 1999-12-24 William M. Perry <wmperry@aventail.com>
1190 * lisp/url-irc.el: Added pointer to draft specification for the
1191 IRC URL so people don't think I'm crazy.
1193 * configure.in: Checks to make sure that Gnus was found, since we
1194 HAVE to have it now. Removed conditional compilation of url-cid.el
1196 1999-12-16 Eric Marsden <emarsden@mail.dotcom.fr>
1198 * lisp/url-util.el (url-get-url-at-point): Allow URLs wrapped in
1199 () to have periods at the end of the chunk.
1201 1999-12-14 William M. Perry <wmperry@aventail.com>
1203 * lisp/url-misc.el (url-man): Implement `man' URL types.
1204 (url-info): Autoload.
1206 (url-rlogin): Ditto.
1207 (url-telnet): Ditto.
1208 (url-tn3270): Ditto.
1209 (url-generic-emulator-loader): Ditto.
1211 * lisp/url-https.el (url-https-create-secure-wrapper): New macro
1212 to wrap arbitrary `http' methods with the appropriate magic to
1214 (file-exists-p): Use it.
1215 (file-readable-p): Use it.
1216 (file-attributes): Use it.
1218 * lisp/url-news.el (url-news-fetch-newsgroup): When building the
1219 server spec for Gnus, make sure we set
1220 nntp-open-connection-function directly, so that other news-related
1221 functions above us can set it.
1222 (url-snews): Implement `snews' URLs using `nntp-open-ssl-stream'.
1223 (url-nntp): Autoload.
1227 1999-12-12 William M. Perry <wmperry@aventail.com>
1229 * lisp/url-http.el (url-http-parse-response): New function to
1230 parse just the HTTP response code out of the buffer, without
1231 taking any other actions.
1232 (url-http-wait-for-headers-change-function): Use it here when we
1233 know we have an HTTP/1.x response.
1234 (url-http-wait-for-headers-change-function): Special case a
1235 response code of '304' or there could be some delays waiting for
1236 keep-alives to time out on cached documents with no known
1237 content-length on the server.
1239 1999-12-11 William M. Perry <wmperry@aventail.com>
1241 * aclocal.m4 (AC_CHECK_CUSTOMLOADS): Don't use $(EMACS) in here -
1242 the Makefile does that for us. We just need to provide what files
1243 to load/functions to run.
1245 * lisp/url-imap.el (url-imap-open-host): Need to bind
1246 nnimap-server-buffer or `nnimap-open-server' chokes trying to use
1247 the current buffer as the IMAP server buffer, which fails miserably.
1249 1999-12-11 Simon Josefsson <jas@pdc.kth.se>
1251 * lisp/url-imap.el: Initial (rough) implementation for IMAP urls.
1253 1999-12-11 William M. Perry <wmperry@aventail.com>
1255 * lisp/url-file.el (url-file-asynch-callback): Make the checks for
1256 ange-ftp vs. efs calling semantics consistent, so that if someone
1257 has NEITHER of them loaded, everything should still work.
1259 * lisp/url-handlers.el (url-copy-file): Autoload.
1260 (url-file-local-copy): Ditto.
1261 (url-insert-file-contents): Ditto.
1262 (url-setup-file-name-handlers): Ditto.
1264 1999-12-10 William M. Perry <wmperry@aventail.com>
1266 * lisp/url-http.el (mail-parse): Since we use functions from here,
1267 we should require it, eh?
1269 1999-12-10 01:57:01 Shenghuo ZHU <zsh@cs.rochester.edu>
1271 * lisp/url-cookie.el (url-cookie-multiple-line): One line cookie
1273 (url-cookie-generate-header-lines): Use it.
1275 1999-12-06 William M. Perry <wmperry@aventail.com>
1277 * lisp/mule-sysdp.el (mule-code-convert-region): Deal with Mule
1280 * lisp/url-news.el: Reimplemented news and nntp URL support.
1281 No longer bothers to check for outdated Gnus versions, since this
1282 will not work without them anyway.
1284 1999-12-05 Dave Love <fx@gnu.org>
1286 * lisp/url-methods.el, lisp/url-proxy.el, lisp/url-util.el,
1290 1999-12-05 William M. Perry <wmperry@aventail.com>
1292 * lisp/url-http.el (url-http-find-free-connection): Spit out a
1293 message when we have to contact a host so the user always gets
1294 at least some feedback.
1296 * lisp/url-expand.el (url-expander-remove-relative-links): Moved and
1298 (url-default-expander): Use it.
1300 * lisp/url-file.el (url-file-asynch-callback): Deal with just efs-auto
1302 (url-file): Add default content-type of application/octet-stream if
1304 (url-file): Correct bad call to url-host-is-local-p
1306 * lisp/url-handlers.el (url-insert-file-contents): Emacs doesn't
1307 like buffer-substring with nil arguments.
1308 (url-copy-file): Use mm-destroy-parts instead of just killing
1309 the buffer. Use defined interfaces when available!
1310 (url-insert-file-contents): Ditto.
1312 * lisp/url-http.el (url-http-create-request): Lots of changes to
1313 get proxying working.
1315 * lisp/url-methods.el (url-scheme-register-proxy): New function to
1316 find and register a proxy for a specific scheme.
1317 (url-scheme-get-property): Use it when we load a URL scheme for
1320 * lisp/url-util.el (url-get-url-at-point): Re-integrated
1322 1999-12-04 William M. Perry <wmperry@aventail.com>
1324 * lisp/url-file.el (url-file): Signal an error if
1325 url-file-build-filename could not find the filename.
1327 1999-12-01 William M. Perry <wmperry@aventail.com>
1329 * lisp/url.el (url-retrieve): Use url-history-update-url instead
1330 of manipulating the hash table directly.
1332 * lisp/url-history.el (url-completion-function): New function to
1333 use for reading a URL with completion.
1334 (url-history-update-url): New function to hide the hashtable
1335 implementation from people inserting things into the history.
1337 1999-11-30 William M. Perry <wmperry@aventail.com>
1339 * lisp/url-proxy.el (url-proxy): Minor tweaks to get proxy support
1342 * lisp/url-parse.el (url-generic-parse-url): Fix bad call to
1343 url-parse-args, which had changed the type of arguments it expects.
1345 * lisp/url-handlers.el (url-insert-file-contents): Ditto.
1346 (url-copy-file): Ditto.
1348 * lisp/url.el (url-mm-callback): Use mm-destroy-parts instead of
1349 just killing the buffer. Use defined interfaces when available!
1351 * aclocal.m4 (AC_EMACS_LISP): Correctly redirect things out to
1352 AC_FD_CC so they show up in config.log
1353 (AC_EMACS_CHECK_LIB): Duh, fixed stupid mistake that would make
1354 this always return 't' instead of 'yes' on successfully finding
1357 * lisp/url-http.el (url-http-parse-headers): Add some
1358 DAV-specific error codes.
1360 * lisp/url.el (url-retrieve): Allow pre-parsed URLs to be passed in.
1361 (url-retrieve-synchronously): Duh, make this function actually
1362 work again. Numerous problems with it, including variable name
1363 collisions - I love dynamically scoped lisps!
1365 * lisp/url-nfs.el (url-nfs-create-wrapper): New function to create
1366 wrappers onto the appropriate file-based URLs for file-name-handlers.
1368 * lisp/url-ftp.el: Moved the FTP stuff into it's own file - it
1369 might get messy with file-name-handlers and things.
1371 * lisp/url-http.el (url-http-clean-headers): Fix problem when
1372 using 'HEAD' requests. Thou shalt not change the length of the
1373 region during an after-change-function.
1375 * lisp/url-methods.el (url-scheme-methods): New variable that
1376 holds a list of the methods/variables we look for in a URL scheme.
1377 (url-scheme-get-property): Use it.
1379 1999-11-29 William M. Perry <wmperry@aventail.com>
1381 * lisp/url-http.el (url-http-file-attributes): Reimplement.
1382 (url-http-file-exists-p): Ditto.
1384 * lisp/url-nfs.el: Reimplemented the `nfs' URL scheme.
1386 * lisp/url-file.el (url-file-create-wrapper): New macro to create
1387 file-name-handler stubs for all the FTP/FILE stuff.
1389 * lisp/url-handlers.el: New file to handle file-name-handler-alist
1390 cruft. Generic interface on top of functions that each URL
1391 loader provides, if capable.
1393 1999-11-27 William M. Perry <wmperry@aventail.com>
1395 * lisp/url-https.el: Implemented HTTPS support.
1397 1999-11-26 William M. Perry <wmperry@aventail.com>
1399 * url-privacy.el (url-setup-privacy-info): Don't rely on
1400 device-type being defined. Not going to bother redistributing
1401 devices.el for just one function.
1403 * url-methods.el (url-scheme-get-property): Emacs does not have
1404 the 3rd-argument to plist-get to specify the default. *sigh*
1406 * url-dired.el (add-minor-mode): Add definition for Emacs.
1408 * url-http.el (url-http-generic-after-change-function):
1409 New function, since Emacs does not allow you to change the
1410 after-change-functions variable from within a function run by
1411 said hook. This just hands it off to the REAL function.
1412 Side-effect is that this now works on Emacs at all. :)
1414 * Initial checkin of rewritten URL library.
1420 ;; arch-tag: ac117078-3091-4533-be93-098162ac2926