Skip to content
Multiple Backends for Emacs URL package
Emacs Lisp Jsonnet Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
test
.bumplus.toml
.drone.jsonnet
.drone.yml
.editorconfig
.gitattributes
.gitignore
Brewfile
CHANGELOG.md
CODE_OF_CONDUCT.md
Cask
LICENSE
README.md
mb-url-http.el
mb-url-pkg.el
mb-url.el

README.md

mb-url - Multiple Backends for Emacs URL package

Author: ZHANG Weiyi dochang@gmail.com

MELPA MELPA Stable Build Status Build Status Average time to resolve an issue Percentage of issues still open GitHub Say Thanks!

Multiple Backends for URL package.

This package provides several backends for url-retrieve & url-retrieve-synchronously, which replace the internal implementation.

The motivation of this package is I can't connect HTTPS url behind proxy (Related bugs: #11788, #12636, #18860, msg00756, #10).

Notice

As the URL package has supported HTTPS over proxies supporting CONNECT since Emacs 26, this package is no longer recommended. But it can still be used in Emacs < 26.

Installation

mb-url is available on MELPA and el-get.

To install mb-url from git repository, clone the repo, then add the repo dir into load-path.

mb-url depends on cl-lib; The test code also depends on s.

NOTE: the test code requires GNU Emacs 24.4 and above because it uses the new nadvice package. mb-url may support GNU Emacs 24.3 and below but it's not tested with those versions.

Backends

Currently only support url-http.

url-http

Install mb-url-http-around-advice to use mb-url-http backends.

(advice-add 'url-http :around 'mb-url-http-around-advice)

All backend functions receive (name url buffer default-sentinel), return a process.

mb-url-http-backend indicates the current backend. If the backend is nil, which means no backend, url-http will be called.

E.g.,

(setq mb-url-http-backend 'mb-url-http-curl)

cURL

mb-url-http-curl

cURL backend for url-http.

mb-url-http-curl-program

cURL program.

mb-url-http-curl-switches

cURL switches.

HTTPie

mb-url-http-httpie

HTTPie backend for url-http.

mb-url-http-httpie-program

HTTPie program.

mb-url-http-httpie-switches

HTTPie switches.

License

GPLv3

Acknowledgements

https://github.com/nicferrier/curl-url-retrieve


Converted from mb-url.el by el2markdown.

You can’t perform that action at this time.