


import urllib2

#URL='http://localhost/test/'
URL='http://localhost:8000/test'

auth = urllib2.HTTPPasswordMgr()
auth.add_password('TestAuth', URL, 'anthony', 'arbadmin2')

opener = urllib2.build_opener(
            urllib2.HTTPDigestAuthHandler(auth)
        )
u =  opener.open(URL)
u =  opener.open(URL)
u =  opener.open(URL)
print u.readlines()
