Jarosław Rzeszótko
e3e52a0157
* lisp/url/url-http.el (url-http-create-request): Don't add extra \r\n after
...
http data.
Fixes: debbugs:16220
2014-01-08 13:29:16 -05:00
Paul Eggert
ba3189039a
Update copyright year to 2014 by running admin/update-copyright.
2014-01-01 07:43:34 +00:00
Leo Liu
0bf29ba617
* url/url-util.el (url-pretty-length): Make obsolete and all uses
...
changed to file-size-human-readable.
2013-09-29 09:37:03 +08:00
Glenn Morris
ee8b701cae
Fix typo in declaration
2013-09-17 22:10:21 -07:00
Glenn Morris
35cc47373e
* lisp/url/url-http.el (zlib-decompress-region): Declare.
2013-09-17 21:44:44 -04:00
Glenn Morris
d6a0426625
Silence some url compilation warnings on systems without zlib
...
* url-http.el (url-handle-content-transfer-encoding):
* url-vars.el (url-mime-encoding-string): Silence compiler.
2013-09-13 00:01:55 -07:00
Lars Magne Ingebrigtsen
6c195442ea
* url-http.el (url-http-parse-headers): Always place point at the
...
start of the buffer instead of just 80% of the time.
2013-08-14 15:03:25 +02:00
Lars Magne Ingebrigtsen
7699d09ec6
Rename zlib-decompress-gzipped-region' to
zlib-decompress-region'.
...
Also support zlib-format compression.
2013-08-12 19:02:31 +02:00
Lars Magne Ingebrigtsen
8a44a18468
Add the zlib prefix to `decompress-gzipped-region'
2013-08-12 15:54:45 +02:00
Lars Magne Ingebrigtsen
6edea0a595
Add Content-Transfer gzip support to url
...
* url-http.el (url-handle-content-transfer-encoding): Support
decompressing gzipped content.
* url-vars.el (url-mime-encoding-string): If we have built-in gzip
support, say that we accept gzipped content.
2013-08-11 22:52:50 +02:00
Stefan Monnier
3a3f390d1b
* lisp/url/url-http.el (status): Remove, unused.
...
(success): Remove var.
(url-http-handle-authentication): Return the value that `success'
should take instead of setting `success' directly. Don't set `status'
since it's not used.
(url-http-parse-headers): Avoid unneeded setq.
Move the `setq success'.
(url-http): Use pcase.
(url-http-file-exists-p): Simplify.
2013-07-22 00:06:21 -04:00
Glenn Morris
fe2219e202
url-http-wait-for-headers-change-function fix for bug#13598
...
* lisp/url/url-http.el (url-http-wait-for-headers-change-function):
Avoid prematurely finding the end of headers when they arrive line-by-line.
2013-02-15 21:05:32 -05:00
Paul Eggert
0877d0dc24
Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.ca
2013-01-02 08:13:04 -08:00
Paul Eggert
ab422c4d68
Update copyright notices for 2013.
2013-01-01 09:11:05 +00:00
Takafumi Arakaki
33d359875a
Two fixes for the URL library (tiny change).
...
* url-expand.el (url-default-expander): Don't calculate a default
url port before checking url-type.
* url-http.el (url-http-end-of-document-sentinel): Bind relevant
url-request-* variables around the call to url-http.
Fixes: debbugs:11469 debbugs:12374
2012-12-22 10:59:08 +08:00
Chong Yidong
b1367cba38
Doc fix for url-http.
...
* url-http.el (url-http):
* url.el (url-retrieve-internal): Doc fix.
Fixes: debbugs:6407
2012-10-13 17:37:25 +08:00
Stefan Monnier
e79186e5b9
* lisp/url/url-http.el (url-http-user-agent-string): Leak less info.
...
(url-http, url-http-file-exists-p, url-http-file-readable-p)
(url-http-file-attributes, url-http-options, url-https-default-port)
(url-https-asynchronous-p): Don't autoload.
2012-10-01 23:48:01 -04:00
Stefan Monnier
89534796c8
* lisp/url/url-http.el (url-http-parse-headers): Re-enable file-name-handlers.
...
Fixes: debbugs:11981
2012-08-14 10:54:51 -04:00
Jason Rumney
4ed1626da6
* lisp/url/url-http.el (url-http-create-request): Use url-http-proxy to
...
look up proxy credentials.
2012-08-11 22:48:37 +08:00
Stefan Monnier
a464a6c73a
More CL cleanups and reduction of use of cl.el.
...
* woman.el, winner.el, vc/vc-rcs.el, vc/vc-hooks.el, vc/vc-hg.el:
* vc/vc-git.el, vc/vc-dir.el, vc/vc-bzr.el, vc/vc-annotate.el:
* textmodes/tex-mode.el, textmodes/sgml-mode.el, tar-mode.el:
* strokes.el, ses.el, server.el, progmodes/js.el, progmodes/gdb-mi.el:
* progmodes/flymake.el, progmodes/ebrowse.el, progmodes/compile.el:
* play/tetris.el, play/snake.el, play/pong.el, play/landmark.el:
* play/hanoi.el, play/decipher.el, play/5x5.el, nxml/nxml-mode.el:
* net/secrets.el, net/quickurl.el, midnight.el, mail/footnote.el:
* image-dired.el, ibuffer.el, ibuf-macs.el, ibuf-ext.el, hexl.el:
* eshell/eshell.el, eshell/esh-io.el, eshell/esh-ext.el:
* eshell/esh-cmd.el, eshell/em-ls.el, eshell/em-hist.el:
* eshell/em-cmpl.el, eshell/em-banner.el:
* url/url.el, url/url-queue.el, url/url-parse.el, url/url-http.el:
* url/url-future.el, url/url-dav.el, url/url-cookie.el:
* calendar/parse-time.el, test/eshell.el: Use cl-lib.
* wid-browse.el, wdired.el, vc/vc.el, vc/vc-mtn.el, vc/vc-cvs.el:
* vc/vc-arch.el, tree-widget.el, textmodes/texinfo.el:
* textmodes/refill.el, textmodes/css-mode.el, term/tvi970.el:
* term/ns-win.el, term.el, shell.el, ps-samp.el:
* progmodes/perl-mode.el, progmodes/pascal.el, progmodes/gud.el:
* progmodes/glasses.el, progmodes/etags.el, progmodes/cwarn.el:
* play/gamegrid.el, play/bubbles.el, novice.el, notifications.el:
* net/zeroconf.el, net/xesam.el, net/snmp-mode.el, net/mairix.el:
* net/ldap.el, net/eudc.el, net/browse-url.el, man.el:
* mail/mailheader.el, mail/feedmail.el:
* url/url-util.el, url/url-privacy.el, url/url-nfs.el, url/url-misc.el:
* url/url-methods.el, url/url-gw.el, url/url-file.el, url/url-expand.el:
Dont use CL.
* ibuf-ext.el (ibuffer-mark-old-buffers): Use float-time.
* eshell/esh-opt.el (eshell-eval-using-options): Quote code with
`lambda' rather than with `quote'.
(eshell-do-opt): Adjust accordingly.
(eshell-process-option): Simplify.
* eshell/esh-var.el:
* eshell/em-script.el: Require `esh-opt' for eshell-eval-using-options.
* emacs-pcase.el (pcase--dontcare-upats, pcase--let*)
(pcase--expand, pcase--u1): Rename pcase's internal `dontcare' pattern
to `pcase--dontcare'.
* emacs-cl.el (labels): Mark obsolete.
(cl--letf, letf): Move to cl-lib.
(cl--letf*, letf*): Remove.
* emacs-cl-lib.el (cl-nth-value): Use defalias.
* emacs-cl-macs.el (cl-dolist, cl-dotimes): Add indent rule.
(cl-progv): Rewrite.
(cl--letf, cl-letf): Move from cl.el.
(cl-letf*): New macro.
* emacs-cl-extra.el (cl--progv-before, cl--progv-after): Remove.
2012-07-11 19:13:41 -04:00
Leo Liu
9979ea1c6c
* lisp/url/url-http.el (url-http-codes): Fix mal-formed defconst.
2012-05-25 18:19:01 +08:00
Chong Yidong
ce7b18ec41
Improve RFC 3986 conformance of url package.
...
Fix 2012-04-10 change to url.el.
* url-http.el (url-http-create-request): Ignore obsolete
attributes slot of url-object.
* url-parse.el: Improve RFC 3986 conformance.
(url-generic-parse-url): Do not populate the ATTRIBUTES slot,
since this is not reliable for general RFC 3986 URIs. Keep the
whole path and query inside the FILENAME slot. Improve docstring.
(url-recreate-url-attributes): Mark as obsolete.
(url-recreate-url): Handle missing scheme and userinfo.
* url-util.el (url-encode-url): New function for URL quoting.
(url-encoding-table, url-host-allowed-chars)
(url-path-allowed-chars): New constants.
(url--allowed-chars): New helper function.
(url-hexify-string): Use them.
* url-vars.el (url-nonrelative-link): Make the regexp stricter.
* url.el (url-retrieve-internal): Use url-encode-url.
Fixes: debbugs:7017
2012-05-09 16:33:48 +08:00
Chong Yidong
091006330e
Allow url-http to handle expired keepalive connections.
...
* lisp/url/url-http.el (url-http-end-of-document-sentinel): Handle
keepalive expiry by calling url-http again.
(url-http): New arg, for the above.
Fixes: debbugs:10223
2012-03-11 23:12:26 +08:00
Devon Sean McCullough
179f69112d
Bugfix for url-http-find-free-connection.
...
* lisp/url/url-http.el (url-http-find-free-connection): Don't pass a nil
argument to url-http-mark-connection-as-busy.
Fixes: debbugs:10891
2012-03-11 17:43:01 +08:00
Lars Ingebrigtsen
3647f557cf
Fix typo in last checkin.
2012-02-10 18:30:39 +01:00
Lars Ingebrigtsen
3b8eb822d9
Cookie/redirection URL fixup
...
(url-http-parse-headers): When redirecting, pass on
the `inhibit-cookie' parameter.
2012-02-10 18:25:31 +01:00
Andreas Schwab
d7c5e1622f
* url-http.el (url-http-clean-headers): Return the number of
...
removed characters.
(url-http-wait-for-headers-change-function): Adjust end position
after cleaning the headers. (Bug#10768)
2012-02-10 12:36:42 +01:00
Lars Ingebrigtsen
aacaa41911
Allow specifying whether to inhibit cookies on a per-URL basis
...
* url-http.el (url-http-create-request): Don't send cookies unless
requested.
(url-http-parse-headers): Don't store cookies unless requested.
* url.el (url-retrieve): Ditto
* url-queue.el (url-queue-retrieve): Take an optional
`inhibit-cookies' parameter.
* url-parse.el (url): Add the `use-cookies' slot to the URL struct
to be able to keep track of whether to do cookies or not on a
per-URL basis.
2012-02-08 01:04:42 +01:00
Glenn Morris
acaf905b11
Add 2012 to FSF copyright years for Emacs files
2012-01-05 01:46:05 -08:00
Paul Eggert
fac916bfd7
Spelling fixes.
2011-12-14 13:05:20 -08:00
Paul Eggert
5396468298
Spelling fixes.
2011-11-19 01:18:31 -08:00
Paul Eggert
da6062e6ea
Spelling fixes.
2011-11-14 23:55:13 -08:00
Lars Magne Ingebrigtsen
122d94635f
If the server hangs up while we're talking to it, just `message' the error instead of throwing an error.
2011-11-14 17:09:13 +01:00
Paul Eggert
fe3c566957
Spelling fixes.
2011-11-08 22:10:51 -08:00
Christopher J. White
b02ba905b4
* url-http.el (url-http-create-request): Avoid adding extra CRLF (Bug#8931).
2011-09-24 18:58:40 -04:00
Lars Magne Ingebrigtsen
ad87170ff3
Fix URL connection failing handling.
...
* url-http.el (url-http-find-free-connection): If there was an
error on connect, make sure the user isn't bothered with
irrelevant questions.
2011-09-13 19:18:08 +02:00
Chong Yidong
98fdd2b837
* url-http.el (url-http-parse-headers): For HTTP 301/302/307, don't convert to a GET request.
...
Fixes: debbugs:701
2011-08-07 13:48:11 -04:00
Chris Newton
b0c9af93ab
Copy over `url-show-status' to the async buffer
...
* url-http.el (url-http): Copy over `url-show-status' to the async
buffer so that `url-display-percentage' does the right thing
(bug#4680).
2011-07-13 16:12:06 +02:00
Nicolas Avrutin
3487ca85e8
* url-http.el (url-http-create-request): Remove double carriage
...
return and newline.
Fixes: debbugs:8931
2011-07-03 18:03:47 +02:00
Lars Magne Ingebrigtsen
9aec558af4
* url-http.el (url-http-wait-for-headers-change-function): Remove
...
pointless "HTTP/0.9 How I hate thee!" message.
Fixes: debbugs:6735
2011-07-03 15:08:40 +02:00
Lars Magne Ingebrigtsen
10472dd0d6
(url-http-wait-for-headers-change-function): Protect against malformed headerless responses from servers.
2011-04-16 15:59:54 +02:00
Lars Ingebrigtsen
b301d17489
(url-http-wait-for-headers-change-function): Don't move if the callback function has moved point.
2011-02-02 22:22:07 -08:00
Glenn Morris
73b0cd5003
Convert consecutive FSF copyright years to ranges.
2011-01-24 20:08:28 -08:00
Glenn Morris
e9bffc61f2
Refill some copyright headers.
2011-01-15 18:21:30 -08:00
Glenn Morris
0d9f702fd0
Nuke arch-tags.
2011-01-15 15:16:57 -08:00
Stefan Monnier
77ab81d054
Merge from emacs-23
2011-01-14 12:18:41 -05:00
Glenn Morris
5df4f04cd3
Add 2011 to FSF/AIST copyright years.
2011-01-02 15:50:46 -08:00
Lars Magne Ingebrigtsen
b0e0b216e5
url-http.el (url-http-end-of-document-sentinel): Protect against the
...
process buffer being killed.
2010-10-07 13:40:42 +02:00
Lars Magne Ingebrigtsen
d23832a2cc
(url-http-wait-for-headers-change-function): Revert previous
...
change. It lead to really slow loads.
2010-10-04 21:34:35 +02:00
Lars Magne Ingebrigtsen
697ebdb06b
* url-http.el (url-http-wait-for-headers-change-function): Protect
...
against url-http-response-status for degenerate documents.
2010-10-04 21:05:53 +02:00