Skip to content

407 Proxy Authentication Required #3283

Closed

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)

Activity

  1. locked and limited conversation to collaborators on Aug 27, 2024
  2. converted this issue into a discussion #3286 on Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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