This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: [urllib.parse.urlparse] It does not correctly parse the URL with basic authentication.
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.9, Python 3.8, Python 3.7, Python 3.6, Python 3.5
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: CuriousLearner, f9n
Priority: normal Keywords:

Created on 2019-08-14 17:37 by f9n, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg349721 - (view) Author: Fatih Sarhan (f9n) Date: 2019-08-14 17:37
No problem for these:

But, these are problematic:

from urllib.parse import urlparse

url = "http://us#er:123@localhost:9001/RPC2"
u = urlparse(url)
# ParseResult(scheme='http', netloc='us', path='', params='', query='', fragment='er:123@localhost:9001/RPC2')
msg349729 - (view) Author: Sanyam Khurana (CuriousLearner) * (Python triager) Date: 2019-08-14 18:00
Duplicate of Issue 37854


Thank you for your report. I'm marking this one as a duplicate of another. Request you to not create multiple issues at once for the same thing.

Thank you!
Date User Action Args
2022-04-11 14:59:19adminsetgithub: 82034
2019-08-14 18:00:17CuriousLearnersetstatus: open -> closed

nosy: + CuriousLearner
messages: + msg349729

resolution: duplicate
stage: resolved
2019-08-14 17:37:25f9ncreate