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/.