Skip to content

docs: fix deprecated or broken examples in urllib.request documentation. #130283

Closed
@Mr-Sunglasses

Description

@Mr-Sunglasses

Documentation

While working on the issue #130132 , I encountered with some examples and I can see the W3C document is outdated with some examples of urllib.request.urlopen() in Example of urllib.request

These are following things I find which is outdated.

Also there are other which also need to be fixed:

ref. https://docs.python.org/3/library/urllib.request.html#examples

There are many example in urllib.request documentation that need to be updated as they no longer works as expected.

In the following example, we are sending a data-stream to the stdin of a CGI and reading the data it returns to us. Note that this example will only work when the Python installation supports SSL.

Use of Basic HTTP Authentication:

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions