summaryrefslogtreecommitdiff
path: root/lisp/url/url-http.el
Commit message (Collapse)AuthorAgeFilesLines
...
* Update copyright year to 2015Paul Eggert2015-01-011-1/+1
| | | | Run admin/update-copyright.
* Remove superfluous `gnutls-available-p' checkLars Magne Ingebrigtsen2014-12-121-2/+1
| | | | | * lisp/url/url-http.el (url-http-parse-headers): `gnutls-available-p' is now always available.
* Fix a problem in url.el without GnuTLSLars Magne Ingebrigtsen2014-12-111-1/+2
| | | | | | | Fixes: debbugs:19346 * lisp/url/url-http.el (url-http-parse-headers): Check that `gnutls-available-p' is defined.
* Make the https logic in url-http work on redirectsLars Magne Ingebrigtsen2014-12-091-5/+7
| | | | | (url-http-parse-headers): When being redirected, make sure we flush the previous certificate.
* Make URL pass the TLS peer status to the callerLars Magne Ingebrigtsen2014-12-091-2/+9
| | | | | * lisp/url/url-http.el (url-http-parse-headers): Pass the GnuTLS status of the connection to the caller.
* Various minor details accumulated over timeStefan Monnier2014-12-081-1/+2
| | | | | | | | | * lisp/info.el (Info-mode-map): Remove left-over binding. * lisp/net/tramp.el (tramp-handle-make-symbolic-link): Mark unused arg. * lisp/obsolete/gulp.el (gulp-create-m-p-alist): Remove unused var `mnt-tm'. * lisp/progmodes/gud.el (gud-gdb-completions): Remove unused var `start'. * lisp/url/url-http.el (url-http-activate-callback): Make debug more verbose. * src/process.c: Whitespace and line-break nitpicks.
* Implement a new url parameter `url-request-noninteractive'Lars Magne Ingebrigtsen2014-11-231-0/+6
| | | | | | | | | * url-http.el (url-http): Respect `url-request-noninteractive'. * url-queue.el (url-queue-start-retrieve): Fetching through url-queue should always be noninteractive. * url-vars.el (url-request-noninteractive): New variable.
* url-http.el (url-user-agent): Add :version.Ted Zlatanov2014-11-051-0/+1
|
* url-http.el: introduce url-user-agentTed Zlatanov2014-11-051-5/+13
| | | | | | | | | | * url-http.el (url-user-agent): New variable, can be function or string. Suggested by Vibhav Pant <vibhavp@ubuntu.com>. (url-http-user-agent-string): Use it. * url-http.el (url-user-agent): New variable, can be function or string. Suggested by Vibhav Pant <vibhavp@ubuntu.com>.
* Fix bug #18650 with warning about zlib when loading url-vars.el.Eli Zaretskii2014-10-071-1/+8
| | | | | | | | | src/decompress.c (init_zlib_functions): Move the message about zlib being unavailable from here... (Fzlib_decompress_region): ...to here. lisp/url/url-http.el (url-http-create-request): Recheck zlib availability on windows-nt each time it might be required.
* Do not set `url-gateway-method' in `url-https'. (Bug#16543)Ulf Jasper2014-09-281-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently, when `url-retrieve' is called for an https url it modifies the variable `url-gateway-method'. This has been changed to explicitly pass the requested gateway method to other functions. When `url-retrieve' is being processed then (via `accept-process-output') another `url-retrieve' call from a pending timer can be started. The second call would always see the modified `url-gateway-method' of the first one, which in general does not match the url. 2014-09-28 Ulf Jasper <ulf.jasper@web.de> * url-gw.el (url-open-stream): New optional parameter `gateway-method'. If non-nil use it instead of global variable `url-gateway-method'. * url/url-http.el (url-http): New optional parameter `gateway-method', pass it to `url-http-find-free-connection'. (url-http-find-free-connection): New optional parameter gateway-method, pass it to `url-open-stream'. (url-https-create-secure-wrapper): Do not modify `url-gateway-method' but explicitly provide 'tls as gateway-method parameter to `url-https'.
* Merge from emacs-24Stefan Monnier2014-09-221-2/+2
|\
| * Clarify url-http and url-retrieve-internal docstringsDmitry Gutov2014-09-191-2/+2
| | | | | | | | | | | | | | | | * lisp/url/url-http.el (url-http): Same. * lisp/url/url.el (url-retrieve-internal): Clarify the docstring. Fixes: debbugs:18116
* | Merge from emacs-24; up to 2014-06-11T19:33:14Z!rgm@gnu.orgGlenn Morris2014-06-251-1/+0
|\|
| * * lisp/url/url-handlers.el (url-http-parse-response): Remove unused autoload.Leo Liu2014-06-261-1/+0
| | | | | | | | | | | | | | | | | | (url-insert-file-contents): Condition on url-http-response-status for the HTTP/S specific part. * lisp/url/url-http.el (url-http-end-of-headers): Remove duplicate defvar. Fixes: debbugs:17549
* | Set Maintainer to emacs-devel in some lisp/url files.Glenn Morris2014-03-281-0/+1
| |
* | * lisp/url/url-vars.el (url-bug-address): Make into an obsolete alias.Glenn Morris2014-03-281-1/+1
|/ | | | | | * lisp/urlurl-http.el (url-http-handle-authentication): * lisp/url/url-news.el (url-news-fetch-message-id): Use M-x report-emacs-bug in help messages.
* * lisp/url/url-http.el (url-http-create-request): Don't add extra \r\n afterJarosław Rzeszótko2014-01-081-3/+1
| | | | | | http data. Fixes: debbugs:16220
* Update copyright year to 2014 by running admin/update-copyright.Paul Eggert2014-01-011-1/+1
|
* * url/url-util.el (url-pretty-length): Make obsolete and all usesLeo Liu2013-09-291-6/+5
| | | | changed to file-size-human-readable.
* Fix typo in declarationGlenn Morris2013-09-171-1/+1
|
* * lisp/url/url-http.el (zlib-decompress-region): Declare.Glenn Morris2013-09-171-0/+2
|
* Silence some url compilation warnings on systems without zlibGlenn Morris2013-09-131-1/+1
| | | | | * url-http.el (url-handle-content-transfer-encoding): * url-vars.el (url-mime-encoding-string): Silence compiler.
* * url-http.el (url-http-parse-headers): Always place point at theLars Magne Ingebrigtsen2013-08-141-0/+1
| | | | start of the buffer instead of just 80% of the time.
* Rename `zlib-decompress-gzipped-region' to `zlib-decompress-region'.Lars Magne Ingebrigtsen2013-08-121-2/+2
| | | | Also support zlib-format compression.
* Add the zlib prefix to `decompress-gzipped-region'Lars Magne Ingebrigtsen2013-08-121-2/+3
|
* Add Content-Transfer gzip support to urlLars Magne Ingebrigtsen2013-08-111-1/+13
| | | | | | | | * 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.
* * lisp/url/url-http.el (status): Remove, unused.Stefan Monnier2013-07-221-142/+140
| | | | | | | | | | | (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.
* url-http-wait-for-headers-change-function fix for bug#13598Glenn Morris2013-02-151-1/+3
| | | | | * 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.
* Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.caPaul Eggert2013-01-021-1/+1
|\
| * Update copyright notices for 2013.Paul Eggert2013-01-011-1/+1
| |
* | Two fixes for the URL library (tiny change).Takafumi Arakaki2012-12-221-2/+5
|/ | | | | | | | | | * 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
* Doc fix for url-http.Chong Yidong2012-10-131-2/+6
| | | | | | | * url-http.el (url-http): * url.el (url-retrieve-internal): Doc fix. Fixes: debbugs:6407
* * lisp/url/url-http.el (url-http-user-agent-string): Leak less info.Stefan Monnier2012-10-011-15/+2
| | | | | | (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.
* * lisp/url/url-http.el (url-http-parse-headers): Re-enable file-name-handlers.Stefan Monnier2012-08-141-7/+5
| | | | Fixes: debbugs:11981
* * lisp/url/url-http.el (url-http-create-request): Use url-http-proxy toJason Rumney2012-08-111-1/+1
| | | | look up proxy credentials.
* More CL cleanups and reduction of use of cl.el.Stefan Monnier2012-07-111-100/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * lisp/url/url-http.el (url-http-codes): Fix mal-formed defconst.Leo Liu2012-05-251-2/+2
|
* Improve RFC 3986 conformance of url package.Chong Yidong2012-05-091-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Allow url-http to handle expired keepalive connections.Chong Yidong2012-03-111-10/+25
| | | | | | | | * 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
* Bugfix for url-http-find-free-connection.Devon Sean McCullough2012-03-111-23/+25
| | | | | | | * 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
* Fix typo in last checkin.Lars Ingebrigtsen2012-02-101-1/+1
|
* Cookie/redirection URL fixupLars Ingebrigtsen2012-02-101-1/+2
| | | | | (url-http-parse-headers): When redirecting, pass on the `inhibit-cookie' parameter.
* * url-http.el (url-http-clean-headers): Return the number ofAndreas Schwab2012-02-101-5/+8
| | | | | | removed characters. (url-http-wait-for-headers-change-function): Adjust end position after cleaning the headers. (Bug#10768)
* Allow specifying whether to inhibit cookies on a per-URL basisLars Ingebrigtsen2012-02-081-3/+6
| | | | | | | | | | | | | | | * 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.
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-051-1/+1
|
* Spelling fixes.Paul Eggert2011-12-141-2/+2
|
* Spelling fixes.Paul Eggert2011-11-191-1/+1
|
* Spelling fixes.Paul Eggert2011-11-141-2/+2
|
* If the server hangs up while we're talking to it, just `message' the error ↵Lars Magne Ingebrigtsen2011-11-141-1/+5
| | | | instead of throwing an error.