Skip to content

Support http_proxy / https_proxy vars #2492

Closed

Description

@ocervell

curl supports automatically setting proxy based on env vars http_proxy / https_proxy (works in upper case HTTP_PROXY / HTTPS_PROXY): https://everything.curl.dev/usingcurl/proxies/env.html

I think this would be a nice addition to httpx instead of having to systematically pass -proxy (which would override the env var if passed of course) ?

Activity

  1. added
    Type: Enhancement
    on May 12, 2026
  2. added a commit that references this issue on May 13, 2026
    6c34d93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: Enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions