open-uri とアクティブ プロキシを使用して URL からデータをダウンロードする方法がわかりません。
私はこのコードを使用しました:
proxy = Net::HTTP::Proxy("??????????????????????")
proxy.start('http://www.example.com') { |http|
puts open(strURL).read
}
しかし、Ruby はエラーを返しました: c:/Ruby192/lib/ruby/1.9.1/net/http.rb:644:in `initialize': A connection attempts failed because the connected party did not end a period after a period, または接続されたホストが応答に失敗したため、確立された接続が失敗しました。- connect(2) (Errno::ETIMEDOUT)
どうしたの?( HTTP は使いたくない)(