HTTP代理背后的Emacs

Leo*_*nel 39 emacs proxy elpa

Emacs能够使用url.elW3 Web浏览器等软件包访问Internet .

此外,Emacs Lisp包存档严重依赖于包url.el.

现在,如何配置Emacs以使用我的HTTP代理连接到Internet?

在代理背后的ELPA任何帮助的奖励积分.

是的,之前我遇到过HTTP代理问题.

Tre*_*son 49

对于w3m,此设置对我有用:

(setq url-proxy-services '(("no_proxy" . "work\\.com")
                           ("http" . "proxy.work.com:911")))
Run Code Online (Sandbox Code Playgroud)

  • 如果您需要身份验证,只要您设置了url-proxy-services,Emacs(至少23.x)将询问您的用户名和密码. (3认同)
  • @grm - 请看这个问题:http://stackoverflow.com/questions/10050186/is-it-possible-to-tell-emacs-on-windows-to-use-the-ie-http-proxy-settings/10050208 #10050208 (3认同)
  • 是否有可能使Emacs使用IE代理设置? (2认同)

gav*_*koa 23

我的授权工作是:

(setq url-proxy-services
   '(("no_proxy" . "^\\(localhost\\|10\\..*\\|192\\.168\\..*\\)")
     ("http" . "proxy.com:8080")
     ("https" . "proxy.com:8080")))

(setq url-http-proxy-basic-auth-storage
    (list (list "proxy.com:8080"
                (cons "Input your LDAP UID !"
                      (base64-encode-string "LOGIN:PASSWORD")))))
Run Code Online (Sandbox Code Playgroud)

适用于Emacs 24.3.它基于非公共API技巧,因此可能无法在其他Emacs版本中使用...


小智 12

Emacs的填充url-proxy-services自变量http_proxy,https_proxy以及no_proxy环境变量,如果他们被设置.


GLJ*_*GLJ 5

这有点旧了,但我也遇到了连接问题。我需要做的一件事是将我的证书添加到中gnutls-trustfiles以便连接。

(with-eval-after-load 'gnutls
    (add-to-list 'gnutls-trustfiles "path/to/cert.crt"))
(setq url-proxy-services
   '(("no_proxy" . "^\\(localhost\\|10\\..*\\|192\\.168\\..*\\)")
     ("http" . "proxy.com:8080")
     ("https" . "proxy.com:8080")))
Run Code Online (Sandbox Code Playgroud)