OSDN Git Service

added sn_uploader
[tdcgexplorer/nimono-crawlers.git] / lib / user_agent.rb
1 module UserAgent
2 module_function
3   def default_http_header
4     @_default_http_header ||= {
5       "User-Agent" => "Mozilla/5.0 (Windows; U; Windows NT 6.0; ja; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)",
6       "Accept" => "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
7       "Accept-Language" => "ja,en-us;q=0.7,en;q=0.3",
8       "Accept-Charset" => "Shift_JIS,utf-8;q=0.7,*;q=0.7",
9     }
10   end
11 end