From: Ned Konz Date: 2001-08-07T02:34:18+09:00 Subject: [ruby-talk:19240] Re: http: "hi, my name is"-message On Monday 06 August 2001 10:23 am, you wrote: > AFAIK: When I go to a website with Mozilla, it tells the server it's > name: Mozilla Version blah and more. > When I download stuff from a webserver with Ruby, what does Ruby tell > the server? How can I find that out? How can I customize the message? > What is the name of the message? (is it the header of the http request?) This is sent in the User-Agent HTTP header. Net::HTTP has a get method that allows the customization of HTTP headers: (I've never used it but this is the impression I get from the docs): http.get( '/index.html', { 'user-agent' => 'MyUserAgent 1.3' } ) -- Ned Konz currently: Stanwood, WA email: ned@bike-nomad.com homepage: http://bike-nomad.com