Net::HTTP with ssl on Windows

(Nicholas Van Weerdenburg) #1

In Ruby 1.8.2. should Net::Http work with ssl on Windows?

        site = Net::HTTP.new( host, port )
        site.use_ssl = use_ssl
        auth=["#{@user}:#{@password}"].pack('m').strip
        response, data = site.get2( page, 'Authorization' => 'Basic ' + auth)

I can a response.code of 500. Everything works on the same site on the
non-ssl page.

Calling response.error! gives
c:/ruby/lib/ruby/1.8/net/http.rb:1629:in `error!': 500 "" (Net::HTTPFatalError)

Using wget on the same page works fine.

Thanks,
Nick

···

--
Nicholas Van Weerdenburg