Re: [Tutor] Cookies and authorization - urllib2 vs urllib

2005-06-23 Thread Kent Johnson
D. Hartley wrote: > P.S. Kent - thank you for the helpful tutorials on authentication, > they really cleared up the process a great deal. The only problem is: > > When I create an opener to process the cookies, it looks like this: > > opener = > urllib2.build_opener(urllib2.HTTPCookieProcessor(

[Tutor] Cookies and authorization - urllib2 vs urllib

2005-06-23 Thread D. Hartley
>From Christian: > Try subclassing urllib.FancyURLopener and overriding the > prompt_user_passwd() method. That should get you what you need :-) Well, I used urllib.FancyURLopener, and can open and look at the url, like this: import urllib opener2 = urllib.FancyURLopener({}) f = opener2.open("