Commit graph

177 commits

Author SHA1 Message Date
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
Stefan Monnier
9b4cf2318a (url-redirect-buffer): New var.
(url-retrieve-synchronously): Use it to follow redirections.
2006-02-20 21:54:23 +00:00
Stefan Monnier
55d1d8b731 Require `url' rather than try to autoload parts of it.
(url-http-find-free-connection): `url-open-stream' needs a real buffer.
(url-http-parse-headers): Set `url-redirect-buffer' when following
a redirection reply.
2006-02-20 21:52:08 +00:00
Thien-Thi Nguyen
5b0d63bc36 Update years in copyright notice; nfc. 2006-02-05 23:44:47 +00:00
Stefan Monnier
81cafdfe92 Move defvars out of eval-when-compile.
(url-news-fetch-message-id, url-news-fetch-newsgroup): Use with-current-buffer.
2006-01-18 16:43:46 +00:00
Stefan Monnier
e7ea7cac4e (url-retrieve-synchronously): Adjust the workaround so as not
to stop in the middle of a redirection.
2006-01-10 19:31:15 +00:00
Stefan Monnier
5dc3ceeb76 (url-privacy-level): Add setter. 2006-01-10 19:14:38 +00:00
Stefan Monnier
59425106a2 (url-setup-privacy-info): Add docstring. 2006-01-10 19:13:54 +00:00
Stefan Monnier
176c99dca2 (url-history-hash-table): Initialize in declaration.
(url-history-parse-history): Don't reset the history.
(url-history-save-history): Create parent dir if necessary.
(url-history-save-history): Don't write the initialization of
url-history-hash-table into the history file.
(url-have-visited-url): Simplify since url-history-hash-table is non-nil.
(url-completion-function): Simplify.
2006-01-05 22:28:16 +00:00
Stefan Monnier
72a30be46b (url-cookie-parse-file): Don't complain of missing file.
(url-cookie-parse-file, url-cookie-write-file, url-cookie-retrieve)
(url-cookie-generate-header-lines, url-cookie-handle-set-cookie)
(url-cookie-setup-save-timer): Remove autoload cookies.
They're only called from files that require url-cookie anyway.
2006-01-05 22:10:47 +00:00
Stefan Monnier
ce0c92e1f3 (url-history-parse-history): Don't complain if the file is missing.
(url-history-setup-save-timer, url-history-parse-history)
(url-history-save-history): Remove autoload cookies.
They're only called from url.el which requires url-history anyway.
2006-01-05 22:07:30 +00:00
Stefan Monnier
55262b16df (url-retrieve-synchronously): Don't autoload. 2006-01-02 05:25:13 +00:00
Stefan Monnier
2ef88a693d (url-retrieve, url-retrieve-synchronously): Autoload. 2006-01-02 05:24:31 +00:00
Stefan Monnier
8abe1fd585 Require `url'. 2006-01-02 05:24:01 +00:00
Stefan Monnier
32d5ce4db4 (url-store-in-cache): Use save-current-buffer. 2005-12-27 17:01:01 +00:00
Stefan Monnier
d476efde68 (url-configuration-directory): Don't autoload because the
default value needs to be computed at run-time, not dump-time.
2005-12-27 16:59:45 +00:00
Stefan Monnier
32fa584479 (url-cookie-write-file): Create parent dir. 2005-12-21 20:08:49 +00:00