From: Bojan Mihelac Date: 2006-08-22T01:13:21+09:00 Subject: Advice for Net::HTTP class Hello, I am loosing myself with Net:HTTP class, following HowToRenderProxiedPages article I cannot make post method to proxy parameters to web page. require 'net/http' ### p.php ### 1. does not work response = Net::HTTP.start('localhost', 80) { |http| http.post('/p.php', 'query=ruby') } puts response ### 2. works response = Net::HTTP.post_form(URI.parse('http://localhost/p.php'), { "query" => "ruby"}) puts response Can anyone please explain me why the first one doesn't work? (I am using Ruby 1.8.4, tested both linux and win) thanx, Bojan Mihelac -- Bojan Mihelac Informatika Mihelac, Bojan Mihelac s.p. | www.informatikamihelac.com -> tools, scripts, tricks from our code lab: http://source.mihelac.org