From: Caleb Mei Date: 2007-08-18T04:29:17+09:00 Subject: Re: Net::HTTP works on localhost, but error Errno::ECONNRESE Thank you for all the help. Resolved the issue by downgrading to 1.8.5. :) Here's my sample code. @hostname = 'my.hostname' http = Net::HTTP.new(@hostname, 443) http.use_ssl = true http.start do |http| request = Net::HTTP::Post.new('index.html') request.set_content_type('content-type') puts 'set content-type done' request.basic_auth '', '' response = http.request(request, params["body"]) puts 'making the request...' response.value case response when Net::HTTPSuccess, Net::HTTPRedirection puts 'success' @result = response.body else puts 'Error' response.error! end end -- Posted via http://www.ruby-forum.com/.