id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
2278,Add basic authentication support,anonymous,rjollos,Is there any way we could add basic authentication support into this include macro?\r\n\r\nWould it involve adding code like this to it?\r\n{{{\r\n# create a password manager\r\npassword_mgr = urllib2.HTTPPasswordMgrWithDefaultRealm()\r\n\r\n# Add the username and password.\r\n# If we knew the realm_ we could use it instead of ``None``.\r\ntop_level_url = "http://example.com/foo/"\r\npassword_mgr.add_password(None_ top_level_url_ username_ password)\r\n\r\nhandler = urllib2.HTTPBasicAuthHandler(password_mgr)\r\n\r\n# create "opener" (OpenerDirector instance)\r\nopener = urllib2.build_opener(handler)\r\n\r\n# use the opener to fetch a URL\r\nopener.open(a_url)\r\n\r\n# Install the opener.\r\n# Now all calls to urllib2.urlopen use our opener.\r\nurllib2.install_opener(opener)\r\n}}},enhancement,closed,normal,IncludeMacro,normal,duplicate,remote authentication,,0.10
