小编Mat*_*atz的帖子

HTTPS_PROXY 与 https_proxy

据我所知,Linux 是区分大小写的。我通常导出 http 代理,如下所示:

export http_proxy= proxy:port export https_proxy= proxy:port

所以我认为如果我像下面这样写,它会起作用。

export HTTP_PROXY= proxy:port export HTTPS_PROXY= proxy:port

但是,它也有效,我想知道原因,以及为什么它有效。

我在这里找到了描述: http: //curl.haxx.se/docs/manpage.html

环境变量可以用小写或大写指定。小写版本优先。http_proxy 是一个例外,因为它仅适用于小写。

这个约定可以应用到任何地方吗?

参考:

  1. http://pubs.opengroup.org/onlinepubs/7908799/xbd/envvar.html
  2. http://www.ee.surrey.ac.uk/Teaching/Unix/unix8.html
  3. http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_03_02.html
  4. http://sc.tamu.edu/help/general/unix/vars.html

linux http-proxy

8
推荐指数
1
解决办法
1万
查看次数

标签 统计

http-proxy ×1

linux ×1