From: Jimmy Thrasher Date: 2001-10-10T04:16:36+09:00 Subject: [ruby-talk:22337] Re: net::http > I need to be able to specify an useragent when I use net::http. > > Is that possible? I tried to look at the code, but could not find > the place to apply a fix. > Right now the Useragent is "-". try: http = Net::HTTP.new(host, port) resp, data = http.get(uri, { "user-agent", "whatever/1.x" }) You can pass HTTP request headers as a Hash in the get, post, etc methods. Jimmy