Here’s a short script to give you an idea of how to programmatically answer basic authentication prompts using python. #!/usr/bin/env python import urllib2, sys, re, base64 from urlparse import urlparse #base64string = base64.encodestring(‘%s:%s’ % (data['name'], data['pass']))[:-1] #req.add_header(“Authorization”, “Basic %s” % base64string) username = ‘some_userid’ password = ‘some_password’ theurl = ‘http://www.techrobatics.com/protected’ #realm = ‘REALM’ base64string = [...]