From: robin wood Date: 2012-08-10T00:23:26+09:00 Subject: Re: proxying HTTPS traffic To answer my own question, you have to pass the use_ssl as an optional parameter when starting the proxy. This works: require 'net/http' proxy_uri = URI('http://localhost:8080') uri = URI('https://www.example.org/') http = Net::HTTP.new(uri.path) if uri.scheme == 'https' http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE end proxy = Net::HTTP::Proxy(proxy_uri.host, proxy_uri.port) http = proxy.start(uri.host, :use_ssl => true, :verify_mode => OpenSSL::SSL::VERIFY_NONE) resp = http.get(uri.path) puts resp.code puts resp.body -- Posted via http://www.ruby-forum.com/.