Skip to content

proxy settings are ignored #39

@hlein

Description

@hlein

There as a previous issue and a commit to add proxy support, #18

I don't know if that worked then, but it doesn't seem to now.

Example that over-specifies every possible flavor of proxy-related env var just in case:

$ http_proxy=http://127.0.0.1:3128 https_proxy=http://127.0.0.1:3128 \
    HTTP_PROXY=http://127.0.0.1:3128 HTTPS_PROXY=http://127.0.0.1:3128 \
    strace rdap google.com 2>&1 | egrep '[^0-9a-f](443|3128)[^0-9a-f]'
getpeername(5, {sa_family=AF_INET, sin_port=htons(443), sin_addr=inet_addr("192.81.185.30")}, [112 => 16]) = 0

By contrast:

$ http_proxy=http://127.0.0.1:3128 https_proxy=http://127.0.0.1:3128 \
    HTTP_PROXY=http://127.0.0.1:3128 HTTPS_PROXY=http://127.0.0.1:3128 \
    strace curl https://google.com/ 2>&1 | egrep '[^0-9a-f](443|3128)[^0-9a-f]'
connect(4, {sa_family=AF_INET, sin_port=htons(3128), sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EINPROGRESS (Operation now in progress)
sendto(4, "CONNECT google.com:443 HTTP/1.1\r"..., 112, MSG_NOSIGNAL, NULL, 0) = 112


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions