Net::HTTP with ssl on Windows

  • Thread starter Nicholas Van Weerdenburg
  • Start date
N

Nicholas Van Weerdenburg

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

site =3D Net::HTTP.new( host, port )
site.use_ssl =3D use_ssl
auth=3D["#{@user}:#{@password}"].pack('m').strip
response, data =3D site.get2( page, 'Authorization' =3D> '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::HTTPFatalEr=
ror)

Using wget on the same page works fine.

Thanks,
Nick
--=20
Nicholas Van Weerdenburg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top