For example, I can easily “make” the request from FireFox:
import urllib2
header = {"User-Agent": "Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20100101 Firefox/14.0.1"}
req = urllib2.request("http://google.com", None, header)
response = urllib2.urlopen(req)
I was wondering, is there a way to add OS info into the header or somewhere else to make it look like coming from a certain OS?
The OS is also in the user agent string. Try the string below.
More details on the user agent: https://developer.mozilla.org/en-US/docs/Gecko_user_agent_string_reference