Commit graph

74 commits

Author SHA1 Message Date
Juanma Barranquero
0ed082fedf Merge from emacs-23 2010-07-27 04:10:05 +02:00
Michael Albinus
c48763bb79 * url-http (url-http-parse-headers): Disable file name handlers at
all (not only Tramp).  (Bug#6717)
2010-07-26 15:19:32 +02:00
Michael Albinus
4ac3a65cf1 * url-http (url-http-parse-headers): Disable Tramp. (Bug#6717) 2010-07-25 13:36:02 +02:00
Mark A. Hershberger
e4f6153f96 2010-07-01 Mark A. Hershberger <mah@everybody.org>
* url-http.el (url-http-create-request): Add a CRLF on the end so
  that POSTs with content to https urls work. See
  <https://bugs.launchpad.net/mediawiki-el/+bug/540759>


Prior to this, the following request would not terminate:

(let ((url-request-method "POST")
             (url-request-data "action=login"))
         (url-retrieve-synchronously "https://example.org/wiki/api.php"))
2010-07-01 14:02:43 -04:00
Ted Zlatanov
89734fb6f6 Fix wrong variable name.
(url-http-parse-headers): Fix wrong variable name.
2010-03-24 20:14:42 -05:00
Ted Zlatanov
1e9d758c2f Add a list of HTTP status code symbols and their text, mapped by number.
* url-http.el (url-http-codes): New variable to hold a mapping of
HTTP status codes' numbers, their symbolic name, and their text.
(url-http-parse-headers): Use it, leaving the original numeric
code in a comment.
2010-03-24 04:30:28 -05:00
Glenn Morris
114f9c9679 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
Chong Yidong
c98f55cad9 * url-http.el (url-http-handle-authentication): Use proxy server,
if any, for authentication (Bug#4883).
2009-11-08 05:32:48 +00:00
Glenn Morris
f9c9a2395c (url-dav-file-attributes): Fix declaration. 2009-10-01 02:06:55 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Glenn Morris
b7270504e4 Comment. 2008-08-30 20:07:58 +00:00
Glenn Morris
e77e9cf409 (url-https-expand-file-name): Resolve directly to url-default-expander
rather than via another alias.
(url-default-expander): Autoload an autoload.  (Bug#825).
2008-08-30 02:22:47 +00:00
Juanma Barranquero
d1ce47b068 Typo and docstring fixes.
* url.el (url-do-setup):
* url-dired.el (url-dired-minor-mode):
* url-file.el (url-file-find-possibly-compressed-file):
* url-gw.el (url-gateway-broken-resolution):
* url-handlers.el (url-handler-regexp):
* url-imap.el (url-imap-default-port):
* url-methods.el (url-scheme-get-property): Fix typos in docstrings.

* url-auth.el (url-basic-auth-storage, url-digest-auth):
  Fix typos in docstrings.
  (url-digest-auth-storage, url-register-auth-scheme): Reflow docstrings.

* url-cache.el (url-cache-prepare): Doc fix.
  (url-cache-create-filename-human-readable, url-cache-extract):
  Fix typos in docstrings.

* url-dav.el (url-intersection, url-dav-iso8601-regexp)
  (url-dav-delete-something): Fix typos in docstrings.
  (url-dav-http-success-p, url-dav-file-name-all-completions)
  (url-dav-directory-files, url-dav-file-name-completion): Doc fixes.

* url-http.el (url-http-idle-sentinel): Doc fix.

* url-irc.el (url-irc-default-port): Fix typo in docstring.
  (url-irc-function): Doc fix.

* url-util.el (url-get-url-filename-chars, url-unhex-string):
  Fix typos in docstrings.
  (url-file-extension): Doc fix.

* url-vars.el (url-current-object, url-current-mime-headers)
  (url-privacy-level, url-mail-command, url-mime-language-string):
  Fix typos in docstrings.
  (url-honor-refresh-requests): Reflow docstring.
  (url-using-proxy): Doc fix.
2008-07-02 11:14:38 +00:00
Glenn Morris
4936186e9c Switch to recommended form of GPLv3 permissions notice. 2008-05-06 04:29:13 +00:00
Magnus Henoch
84f089d3fb (url-http-chunked-encoding-after-change-function):
Remove superfluous CRLF at end of file.  (bug #42)
2008-03-09 20:16:12 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
12dc447f2a Add 2008 to copyright years. 2008-01-07 02:23:04 +00:00
Dan Nicolaescu
153ef845b8 * progmodes/idlw-help.el: Require browse-url unconditionally, it
is available by default.
(idlwave-help-browse-url-available): Change default to t.

* emulation/edt.el (defgroup, defcustom): Remove definition.
(eval-when-compile): Remove.
(c-mark-function):
* textmodes/reftex-dcr.el (bibtex-beginning-of-entry):
* textmodes/fill.el (comment-search-forward)
(comment-string-strip):
* progmodes/prolog.el (comint-mode, comint-send-string)
(comint-send-region, comint-send-eof):
* progmodes/dcl-mode.el (imenu-default-create-index-function):
* emulation/viper-util.el (viper-forward-Word):
* emulation/vi.el (c-mark-function):
* emulation/edt-vt100.el (vt100-wide-mode):
* emacs-lisp/timer.el (diary-entry-time): Declare as functions.

* url-mailto.el (mail-send-and-exit):
* url-http.el (url-dav-file-attributes):
* url-file.el (ange-ftp-set-passwd, ange-ftp-copy-file-internal):
Declare as functions.

* url-privacy.el (url-device-type): Define unconditionally.
2007-11-20 00:57:10 +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
Glenn Morris
8c0ee52a6f Switch license to GPLv3 or later. 2007-07-25 04:18:23 +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
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
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
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
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +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
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
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
f0d64cfca0 (url-http-content-length-after-change-function): Use `url-lazy-message'. 2006-11-23 08:40:06 +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
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
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
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
ced20bfb68 (url-http-parse-headers): Fix misplaced paren. 2006-10-28 14:51:40 +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
Stefan Monnier
162fbe11f5 (url-http-head-file-attributes): Add device "info". 2006-09-20 17:35:13 +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
Reiner Steib
d10a6bf119 (url-http-file-exists-p): Test if status is integer. 2006-05-12 12:29:36 +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
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
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