Top Level Namespace
Defined Under Namespace
Modules: JOffice, Math Classes: Array, Fiber, Object, String, Time
Constant Summary collapse
- ALL_HEADERS =
['Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 GTB5 (.NET CLR 3.5.30729)', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3) Gecko/20090305 Firefox/3.1b3 GTB5', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; ko; rv:1.9.1b2) Gecko/20081201 Firefox/3.1b2', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.9b5) Gecko/2008032620 Firefox/3.0b5', 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.12) Gecko/20080214 Firefox/2.0.0.12', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; cs; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8', 'Mozilla/5.0 (X11; U; OpenBSD i386; en-US; rv:1.8.0.5) Gecko/20060819 Firefox/1.5.0.5', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; es-ES; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5', 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2a2pre) Gecko/20090901 Ubuntu/9.10 (karmic) Namoroka/3.6a2pre', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2a1) Gecko/20090806 Namoroka/3.6a1', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; cs; rv:1.9.2a2pre) Gecko/20090912 Namoroka/3.6a2pre (.NET CLR 3.5.30729)', 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090109 Shiretoko/3.1b3pre', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b4pre) Gecko/20090311 Shiretoko/3.1b4pre', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009033017 GranParadiso/3.0.8', 'Mozilla/5.0 (BeOS; U; Haiku BePC; en-US; rv:1.8.1.21pre) Gecko/20090227 BonEcho/2.0.0.21pre', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.9) Gecko/20071113 BonEcho/2.0.0.9', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20061026 BonEcho/2.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.53 Safari/525.19', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; MS-RTC LM 8; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET CLR 3.0.30729)', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; InfoPath.2)', 'Opera/5.11 (Windows 98; U) [en]', 'Mozilla/4.0 (compatible; MSIE 5.0; Windows 98) Opera 5.12 [en]', 'Opera/6.0 (Windows 2000; U) [fr]', 'Mozilla/4.0 (compatible; MSIE 5.0; Windows NT 4.0) Opera 6.01 [en]', 'Opera/7.03 (Windows NT 5.0; U) [en]', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Opera 7.10 [en]', 'Opera/9.02 (Windows XP; U; ru)', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; en) Opera 9.24', 'Opera/9.51 (Macintosh; Intel Mac OS X; U; en)', 'Opera/9.70 (Linux i686 ; U; en) Presto/2.2.1', 'Opera/9.80 (Windows NT 5.1; U; cs) Presto/2.2.15 Version/10.00', 'Mozilla/5.0 (X11; Linux i686; U;rv: 1.7.13)', 'Mozilla/5.0 (X11; U; Linux 2.4.2-2 i586; en-US; m18)', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.8.0.2)', 'Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.7.6)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; Nautilus/1.0Final)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1)', 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9a8)', 'Mozilla/5.0 Galeon/1.0.2 (X11; Linux i686; U;)'].freeze
Instance Method Summary collapse
Instance Method Details
#get_random_header ⇒ Object
71 72 73 |
# File 'lib/joffice/http_headers.rb', line 71 def get_random_header ALL_HEADERS[rand(ALL_HEADERS.size)] end |