**** httplib.InvalidURL: nonnumeric port ****
Kev Dwyer
kevin.p.dwyer at gmail.com
Mon Dec 20 14:12:41 EST 2010
On Tue, 21 Dec 2010 00:01:44 +0530, Anurag Chourasia wrote:
>>> import httplib
>>> help(httplib.HTTP)
Help on class HTTP in module httplib:
class HTTP
| Compatibility class with httplib.py from 1.5.
|
| Methods defined here:
|
| __init__(self, host='', port=None, strict=None)
The constructor doesn't take a complete URL as an argument.
Also, shouldn't you be using httplib.HTTPConnection? The docs
state that httplib.HTTP is for backward compatibility only.
Kev
More information about the Python-list
mailing list