[Ruby] HTTPSサーバへのつなぎ方
結構簡単。でも、Net::HTTPをnewするときに http:// を付けて引数で渡してたので、エラーが出てて、10分ほど悩んだ・・・ OTZ
require "net/https"
https = Net::HTTP.new("www.hogehoge.jp",443)
https.use_ssl = true
https.start{|w|
response = w.get("/")
@body = response.body
}
by etrojan2006 | 2007-02-22 18:47 | Ruby