Skip to content

Support digest authentication for HTTP proxies. #2033

Description

@lovelydinosaur

Escalating discussion #2028 into an issue.

HTTP proxies are sometimes configured to use digest authentication.
Right now we only support basic authentication with HTTP proxies.
It'd be worthwhile to also support digest - which requires following up the initial CONNECT request to the proxy with a subsequent authentication request before the proxy tunnel is established.

Here's the original discussion...

Originally posted by raffaem January 13, 2022
Does httpx support DigestAuthentication for proxies, and if so, can you connect to HTTPS websites through a proxy that requires DigestAuthentication?

requests-toolbet has a HTTPProxyDigestAuth class, but it does not allow you to connect to HTTPS through the proxy.

Apparently that feature won't be implemented in the foreseeable future in requests.

The only working implementation that I have found, and which allows you to connect to HTTPS websites through the proxy, is this one, which was provided in this StackOverflow post.

Does httpx support this feature, or will it support it?

Activity

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

    enhancementNew feature or requestproxiesIssues related to HTTP and SOCKS proxieswontfix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions