Skip to content

Add support for the NO_PROXY environment variable #360

Closed

Description

@sethmlarson

The NO_PROXY environment variable is described here:

In order to accomplish this task we'd need:

  • Implementing NO_PROXY, a list of hosts that will bypass the proxy if found within the list.
  • Only enabled if trust_env=True
  • Documentation updates for the new environment variable.
  • Test cases for all code branches.

Activity

  1. elwinmartin commented on Sep 19, 2019

    @elwinmartin

    @sethmlarson Hi Seth!

    I would love to work on this if I could!

    I'm mostly familiar with this library as a user but I think the context provided should be clear enough to adapt this for httpx.

  2. sethmlarson commented on Sep 19, 2019

    @sethmlarson
    ContributorAuthor

    That would be awesome!! I'll assign the issue to you :)

    If you have questions or doubts feel free to reach out here and we'll try our best to help.

  3. lovelydinosaur commented on Sep 27, 2019

    @lovelydinosaur
    Member

    Looks good.
    Related to #404. I wonder if cURL would be a good baseline set of environment variables to adhere too? That's probably more robust and mature than any other tooling out there, so I'd be okay with us explicitly following their lead.

  4. mariaS210 commented on Oct 6, 2019

    @mariaS210
    Contributor

    @sethmlarson hello! is someone working on this? if not, i'd like to try it

  5. florimondmanca commented on Oct 6, 2019

    @florimondmanca
    Contributor

    Feel free to go ahead @mariaS210! 🎉

  6. yeraydiazdiaz commented on Nov 4, 2019

    @yeraydiazdiaz
    Contributor

    Closed via #471

  7. lovelydinosaur commented on Jan 14, 2020

    @lovelydinosaur
    Member

    Reopening this, since it's evidently been closed in error - #471 adds NO_PROXY handling utility functions, but doesn't tie it in to the client.

  8. pawamoy commented on Jan 20, 2020

    @pawamoy

    Is there another way to bypass the proxies while waiting for NO_PROXY to be tied into the client?

  9. lovelydinosaur commented on Jan 20, 2020

    @lovelydinosaur
    Member

    You can use trust_env=False to disable system proxies.

    https://www.python-httpx.org/environment_variables/

  10. evanlurvey commented on Feb 29, 2020

    @evanlurvey
    Contributor

    I have addressed this in #835

  11. evanlurvey commented on Mar 2, 2020

    @evanlurvey
    Contributor

    @florimondmanca Would you want to close this issue now?

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

    proxiesIssues related to HTTP and SOCKS proxiesrequests-compatIssues related to Requests backwards compatibility

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions