HTTP - basic authentication example.
John J. Lee
jjl at pobox.com
Sun Sep 19 16:11:54 EDT 2004
More information about the Python-list mailing list
Sun Sep 19 16:11:54 EDT 2004
- Previous message (by thread): HTTP - basic authentication example.
- Next message (by thread): HTTP - basic authentication example.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
jjl at pobox.com (John J. Lee) writes: [...] > Assuming Python 2.4 (UNTESTED -- I haven't recently had occasion to > use any auth.): > > import urllib2 > import cookielib > import ClientCookie # for some more urllib2 handlers, for good measure ;-) > > def build_opener(realm, uri, user, password): > ch = cookielib.HTTPCookieProcessor() [...] Whoops, HTTPCookieProcessor is actually in urllib2, not cookielib. John
- Previous message (by thread): HTTP - basic authentication example.
- Next message (by thread): HTTP - basic authentication example.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list