From: Mattias Wahlberg Date: 2001-06-19T03:34:20+09:00 Subject: [ruby-talk:16598] Re: http question > Can anyone tell me what I'm doing wrong? Here is my program: > > require 'net/http' > hash = { 'q' => 'ruby' } > h = Net::HTTP.new('www.google.com') > resp, data = h.get('/search', hash) I don't understand your problem. The path you should request is simply ' /search?q=ruby'. The headers are used for something quite different, like sending client-info to the server etc. See for example the RFC-2068 (HTTP 1.1) at http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc2068.html#sec-14.42 for more information. /MW