#120013 - httplib.py doesn't know how to handle http_proxy with user:pass@URL (original) (raw)
Reported by: thomas poindessous <poinde_t@epita.fr>
Date: Sat, 17 Nov 2001 22:03:02 UTC
Severity: normal
Found in version 2.1.1-4
Fixed in version python2.1/2.1.1-7
Done: Matthias Klose doko@debian.org
Bug is archived. No further changes may be made.
Forwarded to 120013-forwarded@bugs.debian.org
Display info messages
Report forwarded to debian-bugs-dist@lists.debian.org, Gregor Hoffleit <flight@debian.org>:Bug#120013; Package python2.1. (full text, mbox, link).
Acknowledgement sent to thomas poindessous <poinde_t@epita.fr>:
New Bug report received and forwarded. Copy sent to Gregor Hoffleit <flight@debian.org>. (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: python2.1 Version: 2.1.1-4 Severity: normal
I tried to use reportbug avec an http_proxy variable which looks like: http://user:pass@proxy:3128/
with pass like \jkIoPd{
And I got this error :
Traceback (most recent call last): File "/usr/bin/reportbug", line 1146, in ? main() File "/usr/bin/reportbug", line 628, in main http_proxy) File "/usr/lib/site-python/reportbug_ui_text.py", line 314, in handle_bts_query archived=archived) File "/usr/lib/site-python/debianbts.py", line 575, in get_reports result = get_cgi_reports(package, system, http_proxy, archived) File "/usr/lib/site-python/debianbts.py", line 494, in get_cgi_reports page = urlopen(url, proxies=proxies) File "/usr/lib/site-python/debianbts.py", line 382, in urlopen return _urlopener.open(url) File "/usr/lib/python2.1/urllib.py", line 176, in open return getattr(self, name)(url) File "/usr/lib/python2.1/urllib.py", line 277, in open_http h = httplib.HTTP(host) File "/usr/lib/python2.1/httplib.py", line 663, in init self._conn = self._connection_class(host, port) File "/usr/lib/python2.1/httplib.py", line 342, in init self._set_hostport(host, port) File "/usr/lib/python2.1/httplib.py", line 348, in _set_hostport port = int(host[i+1:]) ValueError: invalid literal for int(): \jkIoPd{@proxy:3128
But if I use http_proxy=http://10.0.0.1:3128/, it works well.
-- Thomas Poindessous thomas@poindessous.com
Reply sent to Matthias Klose <doko@cs.tu-berlin.de>:
You have marked Bug as forwarded. (full text, mbox, link).
Message #8 received at 120013-forwarded@bugs.debian.org (full text, mbox, reply):
forwarded to sf.net (495682):
https://sourceforge.net/tracker/index.php?func=detail&aid=495682&group_id=5470&atid=105470
Reply sent to Matthias Klose <doko@debian.org>:
You have taken responsibility. (full text, mbox, link).
Notification sent to thomas poindessous <poinde_t@epita.fr>:
Bug acknowledged by developer. (full text, mbox, link).
Message #13 received at 120013-close@bugs.debian.org (full text, mbox, reply):
We believe that the bug you reported is fixed in the latest version of python2.1, which has been installed in the Debian FTP archive:
idle-python2.1_2.1.1-7_all.deb to pool/main/p/python2.1/idle-python2.1_2.1.1-7_all.deb idle_2.1.1-7_all.deb to pool/main/p/python2.1/idle_2.1.1-7_all.deb python-dev_2.1.1-7_all.deb to pool/main/p/python2.1/python-dev_2.1.1-7_all.deb python-elisp_2.1.1-7_all.deb to pool/main/p/python2.1/python-elisp_2.1.1-7_all.deb python-examples_2.1.1-7_all.deb to pool/main/p/python2.1/python-examples_2.1.1-7_all.deb python-gdbm_2.1.1-7_all.deb to pool/main/p/python2.1/python-gdbm_2.1.1-7_all.deb python-mpz_2.1.1-7_all.deb to pool/main/p/python2.1/python-mpz_2.1.1-7_all.deb python-tk_2.1.1-7_all.deb to pool/main/p/python2.1/python-tk_2.1.1-7_all.deb python2.1-dev_2.1.1-7_i386.deb to pool/main/p/python2.1/python2.1-dev_2.1.1-7_i386.deb python2.1-elisp_2.1.1-7_all.deb to pool/main/p/python2.1/python2.1-elisp_2.1.1-7_all.deb python2.1-examples_2.1.1-7_all.deb to pool/main/p/python2.1/python2.1-examples_2.1.1-7_all.deb python2.1-gdbm_2.1.1-7_i386.deb to pool/main/p/python2.1/python2.1-gdbm_2.1.1-7_i386.deb python2.1-mpz_2.1.1-7_i386.deb to pool/main/p/python2.1/python2.1-mpz_2.1.1-7_i386.deb python2.1-tk_2.1.1-7_i386.deb to pool/main/p/python2.1/python2.1-tk_2.1.1-7_i386.deb python2.1-xmlbase_2.1.1-7_i386.deb to pool/main/p/python2.1/python2.1-xmlbase_2.1.1-7_i386.deb python2.1_2.1.1-7.diff.gz to pool/main/p/python2.1/python2.1_2.1.1-7.diff.gz python2.1_2.1.1-7.dsc to pool/main/p/python2.1/python2.1_2.1.1-7.dsc python2.1_2.1.1-7_i386.deb to pool/main/p/python2.1/python2.1_2.1.1-7_i386.deb python_2.1.1-7_all.deb to pool/main/p/python2.1/python_2.1.1-7_all.deb
A summary of the changes between this version and the previous one is attached.
Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 120013@bugs.debian.org, and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software pp. Matthias Klose doko@debian.org (supplier of updated python2.1 package)
(This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Format: 1.7 Date: Sun, 30 Dec 2001 17:06:06 +0100 Source: python2.1 Binary: python-dev python python-gdbm python2.1-examples python2.1-gdbm idle python2.1-xmlbase python2.1-mpz idle-python2.1 python-tk python2.1-elisp python-mpz python2.1 python-examples python-elisp python2.1-dev python2.1-tk Architecture: source all i386 Version: 2.1.1-7 Distribution: unstable Urgency: medium Maintainer: Gregor Hoffleit flight@debian.org Changed-By: Matthias Klose doko@debian.org Description: idle - An IDE for Python using Tkinter (default version) idle-python2.1 - An IDE for Python (v2.1) using Tkinter python - An interactive object-oriented scripting language (default versio python-dev - Header files and a static library for Python (default) python-elisp - Emacs-lisp python-mode for the Python language (default version) python-examples - Examples for the scripting language Python (default version) python-gdbm - GNU dbm database support for Python (default version) python-mpz - Multiple-precision arithmetic support for Python (default version python-tk - Tkinter - Writing Tk applications with Python (default version) python2.1 - An interactive object-oriented scripting language (version 2.1) python2.1-dev - Header files and a static library for Python (v2.1) python2.1-elisp - Emacs-lisp python-mode for the scripting language Python (v2.1) python2.1-examples - Examples for the scripting language Python (v2.1) python2.1-gdbm - GNU dbm database support for Python (v2.1) python2.1-mpz - Multiple-precision arithmetic support for Python (v2.1) python2.1-tk - Tkinter - Writing Tk applications with Python (v2.1) python2.1-xmlbase - XML support included in Python (v2.1) Closes: 35554 40891 84340 120013 125785 126383 126657 126813 127040 Changes: python2.1 (2.1.1-7) unstable; urgency=medium .
- Add missing chunk of the GNU/Hurd patch (therefore urgency medium).
- Send anonymous password when using anonftp (closes: #126813).
- Backports from the release22-maint branch:
- idle.py: preprend '/usr/lib/idle-python2.1' to sys.path. Closes: #126383, #126657.
- Beginning with v2.1 (or v2.0?), ftplib.py uses passive ftp as the default. Closes: #40891.
- urllib2.py has the functionality to handle user and password in requests by passing a Request instance instead of URL to urlopen (closes: #120013).
- python (v2.1) includes an updated curses module (supporting ncurses). Closes: #35554).
- Link dbm module with db1 library (closes: #127040). Files: 6e35b729abcc394c7d2fbb0628ecfc36 1325 interpreters optional python2.1_2.1.1-7.dsc 1fb2f74e19a0310fb2bf2e762ca23e69 84553 interpreters optional python2.1_2.1.1-7.diff.gz 2c4efcbe1e79b6d6be81d88bae981dd4 499140 interpreters optional python2.1-examples_2.1.1-7_all.deb 8c4eef98c935f047345b2ed2a77b5e69 49150 interpreters optional python2.1-elisp_2.1.1-7_all.deb 4b64d01084f789849f6bd175be551aaa 113190 devel optional idle-python2.1_2.1.1-7_all.deb d63d3405e700785103b375ff1f63ff6d 23408 interpreters optional python_2.1.1-7_all.deb 476ec9181643c19675b9f34f98f23e5f 10560 interpreters optional python-tk_2.1.1-7_all.deb 0b11a688273c8e7e5ac9754615fcd4d8 10436 interpreters optional python-gdbm_2.1.1-7_all.deb 8c8015a804eb01f2d984fff56479a818 10440 interpreters optional python-mpz_2.1.1-7_all.deb 7563b0e97a3bebae67b18c7dbbd72c69 10450 interpreters optional python-examples_2.1.1-7_all.deb f206a2474962d769f7a12c7e85e13f6e 10504 interpreters optional python-elisp_2.1.1-7_all.deb fe542a3346840ee851cfb7a0579c52fa 13014 interpreters optional python-dev_2.1.1-7_all.deb 18a568b6ad59ec570fc7d5a7c0f72acc 10548 devel optional idle_2.1.1-7_all.deb 79f2b4466f9d7dc6c65da09c00955224 1356910 interpreters optional python2.1_2.1.1-7_i386.deb b9f063de433eff1e63ce15010d3f330d 76962 interpreters optional python2.1-tk_2.1.1-7_i386.deb 83590a8295877327193b8befb6af8898 46098 interpreters optional python2.1-xmlbase_2.1.1-7_i386.deb 45c2f658e3941f2fa8109edc56813743 16094 interpreters optional python2.1-gdbm_2.1.1-7_i386.deb ff74d3942ab60e5f6eb94465316e9643 18988 interpreters optional python2.1-mpz_2.1.1-7_i386.deb 2829e22c2c8d9ffb1520e2249a90c871 563316 interpreters optional python2.1-dev_2.1.1-7_i386.deb
-----BEGIN PGP SIGNATURE----- Version: 2.6.3ia Charset: noconv Comment: Requires PGP version 2.6 or later.
iQEVAwUBPC8/5QuDzMCIcnEhAQGgyAf/Zfxqx0y/2HlAiT2DElLXhWuzjNu3/wz/ MHDIfuuyW1B47mQH7Ye4yDu8bmJuIYU2nfA01jTW7TfGgxjzv0Iqb8dh3DITU597 zZiKRAN2CjfzRaS5SfCZyP7hXMmxdb2dcD49Tltx2E5xYwGC4F7+MuCVFFcHioMK X5OnoR59AGVTnwp/EM2eGDJHhrqYJkmNjYOr/Oq6RJ8SV58/sw3TfkQXeMUZ7E1Q 32oKXtOU7UvPLc4r4jgxFcZ6B9c+k7rRgw6tOiJy5vi9vt6l9148I24e4ua7NkoR vsMV+Pc1427ycpyrF8+LgwIFEMzUjHECgZx3/jUc+xtmS0nq5s5soQ== =mR3E -----END PGP SIGNATURE-----
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified:Wed Apr 8 23:09:01 2026; Machine Name:buxtehude
Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.