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