Skip to content

Add gzip support to urllib.request.retrieve() #59294

Closed

Description

@rhettinger
BPO 15089
Nosy @rhettinger, @jcea, @serhiy-storchaka
Superseder
  • bpo-1508475: transparent gzip compression in urllib
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2012-06-17.10:32:19.903>
    created_at = <Date 2012-06-17.06:51:12.952>
    labels = ['easy', 'type-feature', 'library']
    title = 'Add gzip support to urllib.request.retrieve()'
    updated_at = <Date 2012-06-17.14:29:38.884>
    user = 'https://github.com/rhettinger'

    bugs.python.org fields:

    activity = <Date 2012-06-17.14:29:38.884>
    actor = 'jcea'
    assignee = 'none'
    closed = True
    closed_date = <Date 2012-06-17.10:32:19.903>
    closer = 'pitrou'
    components = ['Library (Lib)']
    creation = <Date 2012-06-17.06:51:12.952>
    creator = 'rhettinger'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 15089
    keywords = ['easy']
    message_count = 2.0
    messages = ['163020', '163027']
    nosy_count = 3.0
    nosy_names = ['rhettinger', 'jcea', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = None
    status = 'closed'
    superseder = '1508475'
    type = 'enhancement'
    url = 'https://bugs.python.org/issue15089'
    versions = ['Python 3.4']

    Activity

    1. rhettinger commented on Jun 17, 2012

      @rhettinger
      ContributorAuthor

      Enable retrieve() to take advantage of data compression in HTTP requests.

      • In the request, add the header "Accept-Encoding: gzip".
      • In the response, check the headers for "Content-Encoding: gzip".
      • Convert the downloaded content using gzip.GzipFile.
    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      type-featureA feature request or enhancement
      on Jun 17, 2012
    3. serhiy-storchaka commented on Jun 17, 2012

      @serhiy-storchaka
      Member

      Isn't this a duplicate of bpo-1508475?

    4. transferred this issue fromon Apr 10, 2022
    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

      easystdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions