Ho il seguente script python e vorrei inviare "false" informazioni di intestazione lungo in modo che la mia applicazione agisca come se fosse firefox. Come potrei farlo?Invia intestazioni lungo python
import urllib, urllib2, cookielib
username = '****'
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)