1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-14 09:39:42 +00:00
Commit Graph

293 Commits

Author SHA1 Message Date
Glenn Morris
d01b355036 Diane Murray <disumu at x3y2z1.net>
(url-news-fetch-newsgroup): Fix formatting of Gnus method.
2007-09-21 03:32:47 +00:00
Glenn Morris
3bef54c922 Diane Murray <disumu at x3y2z1.net>
(url-news-fetch-newsgroup): Fix formatting of Gnus method.
2007-09-21 03:32:29 +00:00
Glenn Morris
965d1f0e25 Diane Murray <disumu at x3y2z1.net>
(url-get-normalized-date): Pass full timezone information to
timezone-make-date-arpa-standard, since zone name may be unknown.
2007-09-21 02:59:20 +00:00
Glenn Morris
fbc09406ca Diane Murray <disumu at x3y2z1.net>
(url-get-normalized-date): Pass full timezone information to
timezone-make-date-arpa-standard, since zone name may be unknown.
2007-09-21 02:53:08 +00:00
Juanma Barranquero
0f71f9da9c *** empty log message *** 2007-09-15 21:27:19 +00:00
Stefan Monnier
ba76db87ef Comment style. 2007-09-07 19:46:59 +00:00
Glenn Morris
8a089270b3 Diane Murray <disumu at x3y2z1.net>
(url-http-parse-headers): Bind the current buffer rather than calling
`url-mark-buffer-as-dead' with `current-buffer', so that the correct
buffer is killed if `url-retrieve-synchronously' gets redirected to a
new URL.
2007-09-03 19:29:29 +00:00
Glenn Morris
72f252993b Diane Murray <disumu at x3y2z1.net>
(url-http-parse-headers): Bind the current buffer rather than calling
`url-mark-buffer-as-dead' with `current-buffer', so that the correct
buffer is killed if `url-retrieve-synchronously' gets redirected to a
new URL.
2007-09-03 19:28:23 +00:00
Stefan Monnier
d18ec89f1c * url-parse.el (url): Use defstruct rather than macros. Update all callers. 2007-08-31 16:40:05 +00:00
Miles Bader
37cc095b6a Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-851
2007-08-13 13:41:28 +00:00
Vinicius Jose Latorre
0ba39347d9 username and password default 2007-08-09 01:42:13 +00:00
Vinicius Jose Latorre
2540a3abbd username and password default 2007-08-09 01:41:08 +00:00
Glenn Morris
3ecd3a56c0 Replace `iff' in doc-strings and comments. 2007-08-08 07:27:21 +00:00
Glenn Morris
df26688bd0 Replace `iff' in doc-strings and comments. 2007-08-08 07:21:11 +00:00
Miles Bader
9aecacd08a Merge from emacs--rel--22
Patches applied:

 * emacs--rel--22  (patch 70-73)

   - Update from CVS

2007-07-25  Glenn Morris  <rgm@gnu.org>

   * Relicense all FSF files to GPLv3 or later.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
2007-07-26 05:28:10 +00:00
Glenn Morris
cacc7b5131 Switch license to GPLv3 or later. 2007-07-25 07:11:02 +00:00
Glenn Morris
8c0ee52a6f Switch license to GPLv3 or later. 2007-07-25 04:18:23 +00:00
Chong Yidong
c0ed4c2329 url.el (url-configuration-directory): Use user-emacs-directory. 2007-06-13 00:07:59 +00:00
Chong Yidong
c705474fa3 (url-configuration-directory): Use user-emacs-directory. 2007-06-13 00:07:32 +00:00
Stefan Monnier
495fa7db39 (url-cookie-name, url-cookie-value, url-cookie-expires, url-cookie-localpart)
(url-cookie-domain, url-cookie-secure, url-cookie-set-name)
(url-cookie-set-value, url-cookie-set-expires, url-cookie-set-localpart)
(url-cookie-set-domain, url-cookie-set-secure, url-cookie-retrieve-arg)
(url-cookie-create, url-cookie-p): Remove.
(url-cookie): New struct.
(url-cookie-store): Use setf instead of url-cookie-set-*.
2007-06-12 18:24:25 +00:00
Richard M. Stallman
dafea68ca2 *** empty log message *** 2007-05-29 19:43:27 +00:00
Chong Yidong
de74fffc15 Fix typo. 2007-05-29 16:24:25 +00:00
Chong Yidong
2819bdd5a3 Fix typo. 2007-05-29 16:23:22 +00:00
Chong Yidong
f93e42baac (url-mailto): Insert body after mail-header-separator if present, so
that is is before signature.  Suggested by Leo Liu <sdl.web@gmail.com>.
2007-05-29 15:31:08 +00:00
Chong Yidong
345c7f05d8 * url-mailto.el (url-mailto): Insert body after
mail-header-separator if present, so that is is before signature.
Suggested by Leo Liu <sdl.web@gmail.com>.
2007-05-29 15:31:01 +00:00
Chong Yidong
40165674ac (url-mailto): Insert body after mail-header-separator if present, so
that is is before signature.  Suggested by Leo Liu <sdl.web@gmail.com>.
2007-05-29 15:30:06 +00:00
Chong Yidong
3fd7fba5d0 * url-mailto.el (url-mailto): Insert body after
mail-header-separator if present, so that is is before signature.
Suggested by Leo Liu <sdl.web@gmail.com>.
2007-05-29 15:29:58 +00:00
Chong Yidong
0539db756c (url-generic-parse-url): Revert 2006-10-09 changes. 2007-04-15 16:47:20 +00:00
Chong Yidong
5cfdb0fb63 * url-parse.el (url-generic-parse-url): Revert 2006-10-09 changes. 2007-04-15 16:47:08 +00:00
Chong Yidong
f25a994634 * url-http.el (url-http-parse-headers): Stop after a set number of
redirections.  Suggested by Diane Murray.

* url-vars.el (url-max-redirections): New var.
2007-04-13 14:59:08 +00:00
Chong Yidong
58aba8143c (url-http-parse-headers): Stop after a set number of redirections.
Suggested by Diane Murray.
2007-04-13 14:58:56 +00:00
Chong Yidong
2faae86bd7 (url-max-redirections): New var. 2007-04-13 14:52:03 +00:00
Glenn Morris
60df22cc35 Changes from author without assignment are (thankfully) tiny. 2007-04-12 02:29:32 +00:00
Chong Yidong
8c33dc1375 (url-http-handle-cookies): Reverse list returned by
`mail-fetch-field', so that cookies are set in the correct order.
2007-04-01 15:39:13 +00:00
Chong Yidong
b4ddc815b7 (url-cookie-retrieve, url-cookie-host-can-set-p): Deal with wildcard
dots in domain values.
2007-04-01 15:38:50 +00:00
Chong Yidong
f3e30bd0ec * url-http.el (url-http-handle-cookies): Reverse list returned by
`mail-fetch-field', so that cookies are set in the correct order.

* url-cookie.el (url-cookie-retrieve, url-cookie-host-can-set-p):
Deal with wildcard dots in domain values.
2007-04-01 15:38:35 +00:00
Eli Zaretskii
fd1e2cdef8 Move url-http.el entry to lisp/url/ChangeLog. 2007-03-31 09:51:25 +00:00
Eli Zaretskii
8ae85a27e0 (url-http-mark-connection-as-busy, url-http-mark-connection-as-free): Clear
query-on-exit flag on idle connections.
2007-03-31 09:44:44 +00:00
Glenn Morris
5b87ad5540 Switch to standard GPL text for license. 2007-02-11 01:18:25 +00:00
Chong Yidong
b3cd7f6176 (url-http-connection-opened): New variable.
(url-http): Initialize it.
(url-http-async-sentinel): Don't try changing sentinels.
Run url-http-end-of-document-sentinel if necessary.
2007-02-04 00:20:59 +00:00
Juanma Barranquero
8f77631e60 *** empty log message *** 2007-01-29 17:12:38 +00:00
Juanma Barranquero
d7c2974dec (url-get-authentication): Fix typo in docstring. 2007-01-29 17:01:33 +00:00
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
Magnus Henoch
00d972ebb6 (url-retrieve-internal): Don't use `url-proxy-object'. 2007-01-14 23:17:59 +00:00
Magnus Henoch
c1e6d824ae (url-proxy-object): Remove.
(url-proxy): Don't use `url-proxy-object'.  Act according to type of
proxy (currently only HTTP supported).
2007-01-14 23:17:28 +00:00
Magnus Henoch
62bfb5bb98 (url-http-proxy): New variable.
(url-http-create-request): Use it.  Don't use `url-proxy-object'.
(url-http): Treat `url' argument as resource to download, and
dynamic variable `url-using-proxy' as proxy to use.  Set
`url-current-object' to actual URL, and `url-http-proxy' to proxy
used.
(url-http-handle-cookies): Assume that `url-current-object' does
not point to the proxy used.
(url-http-async-sentinel): Adapt error message.
2007-01-14 23:17:08 +00:00
Magnus Henoch
b8976ce04f *** empty log message *** 2006-12-17 17:00:18 +00:00
Glenn Morris
1513a14b51 Add a copyright notice, with years based on earliest date in this
file, combined with broadest subsequent set used for other url files.
2006-12-17 07:00:03 +00:00
Juanma Barranquero
28e86dc414 *** empty log message *** 2006-12-10 23:52:35 +00:00
Juanma Barranquero
0c852d6e9b (url-gateway-nslookup-program): Doc fix. 2006-12-10 23:44:43 +00:00
Magnus Henoch
b1249a9539 (url-retrieve-internal): Bind url-proxy-object to nil. 2006-12-08 00:39:01 +00:00
Magnus Henoch
9450f1246a (url-http-create-request): Remove url argument, use the buffer-local
variable `url-http-target-url' instead.  Both callers updated.
Simplify proxy handling.
(url-http): Don't make proxy-object buffer local.
2006-12-08 00:38:47 +00:00
Magnus Henoch
3a15c71bb8 (url-proxy-object): New variable.
(url-proxy): Bind it instead of `proxy-object'.
2006-12-08 00:38:15 +00:00
Magnus Henoch
b9b172ace7 (url-http): Define url-http-response-version.
(url-http-parse-response): Set it.
(url-http-parse-headers): Use it to determine keep-alive behavior.
2006-11-26 13:22:52 +00:00
Magnus Henoch
57babe1716 (url-http-wait-for-headers-change-function): Use `when' instead of
`if' when possible.
2006-11-26 12:50:15 +00:00
Magnus Henoch
48d2bac451 (url-display-percentage): Only show a message if `url-show-status' is non-nil. 2006-11-23 08:42:06 +00:00
Magnus Henoch
f0d64cfca0 (url-http-content-length-after-change-function): Use `url-lazy-message'. 2006-11-23 08:40:06 +00:00
Juanma Barranquero
1ac3c9101d *** empty log message *** 2006-11-16 00:58:47 +00:00
Magnus Henoch
6e2988e60d (url-http): Make proxy-object buffer-local, to handle proxied
asynchronous connections correctly.
2006-11-15 23:29:56 +00:00
Magnus Henoch
d58fae84a6 (url-generic-parse-url): Use with-temp-buffer. 2006-11-15 23:14:49 +00:00
Magnus Henoch
9832523519 (url-http-wait-for-headers-change-function): Defer detection of HTTP
0.9 until we have at least one line.
2006-11-15 23:07:23 +00:00
Chong Yidong
db8d59365b (url-http-mark-connection-as-free, url-http-find-free-connection):
Don't treat process with status `connect' as free.
(url-http-async-sentinel): Request correct url.
2006-11-10 17:09:01 +00:00
Chong Yidong
8529c21d8c * url-http.el (url-http-mark-connection-as-free)
(url-http-find-free-connection): Don't treat process with status
`connect' as free.
(url-http-async-sentinel): Request correct url.
2006-11-10 17:08:20 +00:00
Juanma Barranquero
33462dfacd Add "add-log-time-zone-rule: t" to Local Variables section. 2006-11-10 00:21:57 +00:00
Magnus Henoch
385b64c52a (url-http-handle-authentication): If there are several authentication
headers, use the strongest available method.
2006-11-08 20:34:47 +00:00
Magnus Henoch
947612be2c (url-retrieve-synchronously): Allow quitting when inhibit-quit is t. 2006-11-08 00:13:00 +00:00
Magnus Henoch
8917392a52 (url-http-handle-authentication): If there are several authentication
headers, use the first with a supported method.
2006-11-02 23:06:20 +00:00
Magnus Henoch
8ea882655e (url-http-create-request): Use buffer-locale equivalents of
dynamically bound variables.
2006-11-01 15:16:22 +00:00
Magnus Henoch
080234b693 (url-open-stream): Really use asynchronous connections (accidentally
disabled during debugging).
2006-10-29 21:00:50 +00:00
Magnus Henoch
ced20bfb68 (url-http-parse-headers): Fix misplaced paren. 2006-10-28 14:51:40 +00:00
Chong Yidong
1b244f6177 * url.el (url-retrieve): Minor doc clarification. 2006-10-27 14:46:59 +00:00
Chong Yidong
5695d1dd75 * url-http.el (url-http-mark-connection-as-free): Verify that
connection is open before saving it.
	(url-http-handle-authentication): Use url-retrieve-internal
	instead of url-retrieve.
	(url-http-parse-headers): Adapt to new callback interface.
	(url-http): Handle non-blocking connections.
	(url-http-async-sentinel): Create.

	* url.el (url-retrieve): Update docstring for new callback interface.
	Remove all code.
	(url-retrieve-internal): Move code from url-retrieve here.

	* url-gw.el (url-open-stream): Use a non-blocking socket for
	`native' gateway method, if available.
2006-10-27 14:44:25 +00:00
Magnus Henoch
784f5416cf (url-https-create-secure-wrapper): Always use tls gateway method. 2006-10-16 14:28:46 +00:00
Magnus Henoch
dfea17e083 (url-http-find-free-connection): Handle url-open-stream returning nil. 2006-10-12 19:59:58 +00:00
Magnus Henoch
9c51663a06 url-https.el: Remove (clashes with url-http on 8+3 systems).
url-http.el: Move contents of url-https.el here.  Add autoloads.
2006-10-11 20:58:36 +00:00
Kim F. Storm
4169c18629 *** empty log message *** 2006-10-09 20:51:00 +00:00
Magnus Henoch
f6fb70fc69 (url-generic-parse-url): Handle URLs with empty path component and
non-empty query component.  Untangle path, query and fragment parsing
code.  Add references to RFC 3986 in comments.
(url-recreate-url-attributes): Start query string with "?", not ";".
2006-10-09 20:10:13 +00:00
Stefan Monnier
5e04776440 (url-dav-file-attributes): Simplify. 2006-09-20 17:35:21 +00:00
Stefan Monnier
162fbe11f5 (url-http-head-file-attributes): Add device "info". 2006-09-20 17:35:13 +00:00
Miles Bader
f316efd978 lisp/url/url-methods.el: Fix format error when http_proxy is empty string
2006-09-18  Michael Olson  <mwolson@gnu.org>

	* url-methods.el (url-scheme-register-proxy): Handle case where
	getenv returns an empty string for http_proxy.  This prevents an
	error when calling `format' later on.

--This line, and those below, will be ignored--
Files to commit:
   lisp/url/ChangeLog
   lisp/url/url-methods.el

This list might be incomplete or outdated if editing the log
message was not invoked from an up-to-date changes buffer!

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-441
Creator:  Michael Olson <mwolson@gnu.org>
2006-09-18 14:16:07 +00:00
Stefan Monnier
c2a7ddb1f3 (url-http-create-request):
Use `url-recreate-url-attributes' when setting real-fname.
2006-09-01 02:31:47 +00:00
Stefan Monnier
fb7dc310ed (url-recreate-url-attributes): New function, code moved from `url-recreate-url'.
(url-recreate-url): Use it.  Put the `url-target' at the end of the URL.
2006-09-01 02:31:24 +00:00
Stefan Monnier
7660c02fc5 (url-cookie-write-file): Really don't use versioned backups. 2006-08-29 14:00:27 +00:00
Stefan Monnier
d0f891a742 (url-file-local-copy): Tell url-copy-file that the dest file will already exist. 2006-08-25 20:44:49 +00:00
Stefan Monnier
07e9b3f01c (url-hexify-string): Only utf-8 encode if it's a multibyte string.
(url-normalize-url): Remove unused var `grok'.
(url-truncate-url-for-viewing): Remove unused var `tail'.
2006-07-31 21:36:43 +00:00
Thien-Thi Nguyen
ecfbb4888a (url-hexify-string): Rewrite. 2006-07-30 20:21:14 +00:00
Miles Bader
0b6bb13008 Update for ERC 5.1.3.
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-348
Creator:  Michael Olson <mwolson@gnu.org>
2006-07-14 02:29:50 +00:00
Stefan Monnier
3d3a26eb29 *** empty log message *** 2006-07-12 18:05:53 +00:00
Stefan Monnier
bc684c16bc Remove spurious * in docstrings.
(url-cookie-write-file): Don't use versioned backups.
(url-cookie-host-can-set-p): Remove unused var `tmp'.
(url-cookie-save-interval): Move to url-cookie group.
(url-cookie-write-file): Reset url-cookies-changed-since-last-save.
2006-07-11 15:03:24 +00:00
Reiner Steib
d10a6bf119 (url-http-file-exists-p): Test if status is integer. 2006-05-12 12:29:36 +00:00
Eli Zaretskii
3dfed65387 *** empty log message *** 2006-05-05 13:03:17 +00:00
Eli Zaretskii
48abdb63bf (url-http-parse-headers): Don't reuse connection if "Connection: close" header
was seen.
2006-05-05 12:10:24 +00:00
Stefan Monnier
351b838f61 (url-open-stream): Don't hide errors.
(url-gateway-nslookup-host, url-open-telnet): Use with-current-buffer.
2006-04-26 20:40:18 +00:00
Stefan Monnier
89a1fe7748 (url-insert): New function.
(url-insert-file-contents): Use it.
2006-04-26 20:37:58 +00:00
Stefan Monnier
bdba217b30 (url-handler-directory-file-name): New handler.
(url-file-local-copy): Plug race condition security hole.
2006-03-29 08:00:09 +00:00
Romain Francoise
354330cf16 Fix last change. 2006-03-27 21:02:19 +00:00
Romain Francoise
7608c40cd1 (url-irc-rcirc, url-irc-erc): New functions.
(url-irc-function): Add rcirc and ERC to the list of IRC clients.
Default to rcirc, since ZenIRC isn't part of Emacs.
2006-03-27 20:23:47 +00:00
Stefan Monnier
bedeb7fde3 (url-http-find-free-connection): Fix braino in last fix. 2006-03-07 17:21:16 +00:00
Stefan Monnier
8dff56def5 (url-http-find-free-connection): Don't kill the process
when killing the temp buffer.
(url-http-symbol-value-in-buffer): Massage to make it clear to the
byte-compiler that the function is defined.
2006-03-06 03:17:00 +00:00
Stefan Monnier
4e606fbad7 (url-http-find-free-connection): braino. 2006-02-20 22:21:00 +00:00