I have the following python script and I would like to send "fake" header information along so that my application acts as if it is firefox. How could I do that?
import urllib, urllib2, cookielibusername = '****'password = '****' login_user = urllib.urlencode({'password' : password, 'username' : username})jar = cookielib.FileCookieJar("cookies")opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(jar))response = opener.open("http://www.***.com")response = opener.open("http://www.***.com/login.php")response = opener.open("http://www.***.com/welcome.php", login_user)