GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Support detecting SOCKS proxy configuration on macOS · Issue #104180 · python/cpython

Support detecting SOCKS proxy configuration on macOS #104180

New issue
Copy link
New issue
Copy link
Closed
Closed
Support detecting SOCKS proxy configuration on macOS#104180
Copy link
Labels
OS-macstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

Description

@samschott
samschott
opened on May 4, 2023
Issue body actions

Feature or enhancement

Allow urllib.request.getproies() to detect SOCKS proxies configured in macOS system settings.

Pitch

urllib.request.getproies() is widely used, for example by requests, to detect proxy configurations from environment variables, macOS System Settings or the Windows Systems Registry. On macOS, however, it does not support reading SOCKS proxy configurations. This is supported on Windows, see #26307.

I'm not sure if this is intentional or just an oversight, but the difference is certainly not documented in https://docs.python.org/3/library/urllib.request.html#urllib.request.getproxies. It would be nice to have feature parity here.

Linked PRs

  • gh-104180: Read SOCKS proxies from macOS System Configuration #104181

Activity

  1. samschott
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on May 4, 2023
  2. samschott
    changed the title [-]Support detecting SOCKS proxy configuration in[/-] [+]Support detecting SOCKS proxy configuration on macOS[/+] on May 4, 2023
  3. gaogaotiantian
    added
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on May 4, 2023
  4. ned-deily
    added
    OS-mac
    on May 5, 2023
  5. ronaldoussoren commented on May 5, 2023

    @ronaldoussoren
    ronaldoussoren
    on May 5, 2023
    Contributor
    More actions

    Not having SOCKS support is an oversight. At the time I didn't know urllib supported SOCKS, and my use-case when adding this was an environment with a regular HTTP proxy.

  6. ronaldoussoren
    added a commit that references this issue on May 9, 2023

    gh-104180: Read SOCKS proxies from macOS System Configuration (#104181)

    9a9b176
  7. carljm
    added 4 commits that reference this issue on May 9, 2023

    Merge branch 'main' into inlinecomp2

    95401fe

    Merge branch 'main' into fixsendfamily

    a614216

    Merge branch 'main' into supermon

    c48eee3

    Merge branch 'main' into fixloadsuperspec

    cf11908
  8. ronaldoussoren commented on May 14, 2023

    @ronaldoussoren
    ronaldoussoren
    on May 14, 2023
    Contributor
    More actions

    @samschott : Thanks for the PR.

    Closing the issue as the PR is merged and this is a feature change that cannot be back ported.

  9. ronaldoussoren
    closed this as completedon May 14, 2023
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

    OS-macstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.