[issue37854] [xmlrpc.client.ServerProxy] It does not correctly parse the URL with basic authentication.
Sanyam Khurana
report at bugs.python.org
Wed Aug 14 14:02:17 EDT 2019
Sanyam Khurana <sanyam.khurana01 at gmail.com> added the comment:
Closed Issue 37853 as a duplicate.
Adding Fatih's comment from there for urllib.parse.urlparse
-------------------------------------------------------------
No problem for these:
"http://localhost:9100"
"http://user:password@localhost:9100"
But, these are problematic:
"http://use#r:password@localhost:9100"
"http://user:pass#word@localhost:9100"
```
from urllib.parse import urlparse
url = "http://us#er:123@localhost:9001/RPC2"
u = urlparse(url)
print(u)
# ParseResult(scheme='http', netloc='us', path='', params='', query='', fragment='er:123 at localhost:9001/RPC2')
```
--------------------------------------
----------
nosy: +CuriousLearner
versions: -Python 3.5, Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37854>
_______________________________________
More information about the Python-bugs-list
mailing list