Skip to content

urllib doesn't respect macOS bypass proxy rules if URL contains port #132671

@nikola-sh

Description

@nikola-sh

Bug report

Bug description:

If macOS proxy bypass system configuration contains *.example.com rule,
urllib.request.urlopen("https://www.example.com/") request is not redirected to the proxy but urllib.request.urlopen("https://www.example.com:443/") is redirected.

CPython versions tested on:

3.13

Operating systems tested on:

macOS

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions