Skip to content

Instantly share code, notes, and snippets.

@gymgle
Created February 8, 2024 14:40
Show Gist options
  • Save gymgle/0a63f5233e9f43ead68ea8102d842d50 to your computer and use it in GitHub Desktop.
Save gymgle/0a63f5233e9f43ead68ea8102d842d50 to your computer and use it in GitHub Desktop.
proxy variables across different tools
Tool curl wget Ruby Python
http_proxy Yes Yes Yes Yes
HTTP_PROXY No No Yes (https://github.com/ruby/ruby/blob/0ed71b37fa9af134fdd5a7fd1cebd171eba83541/lib/uri/generic.rb#L1519) Yes (if REQUEST_METHOD not in env)
https_proxy Yes Yes Yes Yes
HTTPS_PROXY Yes No Yes Yes
Case precedence lowercase lowercase only lowercase lowercase
Reference https://github.com/curl/curl/blob/30e7641d7d2eb46c0b67c0c495a0ea7e52333ee2/lib/url.c#L2250-L2266 https://github.com/jay/wget/blob/099d8ee3da3a6eea5635581ae517035165f400a5/src/retr.c#L1222-L1239 https://github.com/ruby/ruby/blob/0ed71b37fa9af134fdd5a7fd1cebd171eba83541/lib/uri/generic.rb#L1474-L1543 https://github.com/python/cpython/blob/030a713183084594659aefd77b76fe30178e23c8/Lib/urllib/request.py#L2488-L2517
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment