Skip to content

407 Proxy Authentication Required #3283

@yuqiuwen

Description

@yuqiuwen

httpx.ProxyError: 407 Proxy Authentication Required. However, its no problem in requests

_proxy_meta = "http://%(user)s:%(pass)s@%(host)s:%(port)s" % {
        "user": "xxx",
        "pass": "xxx",
        "host": "xxx",
        "port": xxx
}

headers["Proxy-Authorization"] = f"sign={sign}&orderno={orderno}&timestamp={ts}&change=true"
proxies = {"http://": _proxy_meta, "https://": _proxy_meta}
r = httpx.get(url, headers=headers, proxies=proxies, verify=False)

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