From: Michael Linfield Date: 2009-12-01T06:29:49+09:00 Subject: Re: Net::http beny 18241 wrote: > --- > require 'net/http' > require 'uri' > > res = Net::HTTP.post_form(URI.parse('http://www.google'), > {'search'=>'text', 'max'=>'50'}) > puts res.body > --- > res = Net::HTTP.post_form(URI.parse('http://www.google.com'), {'q'=>'text', 'max'=>'50'}) Take a look at the address bar when you search for 'text' with google. Notice how it has q=text... so 'search' would be incorrect I believe. Regards, - Mac -- Posted via http://www.ruby-forum.com/.