[Python-bugs-list] [ python-Bugs-411508 ] httplib does not support user/pass

noreply@sourceforge.net noreply@sourceforge.net
Sat, 07 Apr 2001 07:07:37 -0700


Bugs item #411508, was updated on 2001-03-26 18:34
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=411508&group_id=5470

>Category: Python Library
>Group: Feature Request
>Status: Closed
Priority: 5
Submitted By: JAmes Atwill (idcmp)
Assigned to: Greg Stein (gstein)
Summary: httplib does not support user/pass 

Initial Comment:
_set_hostport looks for the first ':' it finds and
takes the text after it as the port.  This doesn't work
if the user supplies a username/password combination.

For example:

  
http://user:pass@hostname.org:8080/directory/filename.html

There is no mechanism for easily including the
username/password unless the calling object mangles the
headers itself.  This means every project that uses
httplib needs to implement authentication itself, over
and over and over again.


----------------------------------------------------------------------

>Comment By: Greg Stein (gstein)
Date: 2001-04-07 07:07

Message:
Logged In: YES 
user_id=6501

1) _set_hostport takes a host/port, NOT a URL.

2) Authentication is for a higher level than the 
HTTPConnection object. The latter is simply to enable 
HTTP/1.1 functionality. Most features can layer on top of 
that as a subclass, or as a class which uses/delegates to a 
connection.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=411508&group_id=5470