New GitHub issue #101186 from NamUKF:<br>
<hr>
<pre>
Hi,
I have exported the env var for http proxy, where the Username and password is included in the URL.
The password of the user includes an '?', which is the reason, why the URL string is not correctly processed.
The URL
`http_proxy='http://<username>:<pass_with_?>@<server>:<port>'`
When the method splits:
https://github.com/python/cpython/blob/53d9cd95cd91f1a291a3923acb95e0e86942291a/Lib/urllib/parse.py#L477
It splits at the ? of the password.
Therefore resulting into
```
File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 950, in proxy_info_from_url
port = int(port)
ValueError: invalid literal for int() with base 10: 'p'
```
if the URL would be:
http://user:p?assword@server:port
Regards
Nam
</pre>
<hr>
<a href="https://github.com/python/cpython/issues/101186">View on GitHub</a>
<p>Labels: </p>
<p>Assignee: </p>