http-access2使えば少しは楽じゃないかな cookieの実装に難ありだけど
pem作るの面倒だから結局OpenSSL::SSL::VERIFY_NONEでほげほげlきdjf;あぇいj
require 'http-access2'
client = HTTPAccess2::Client.new(nil, 'UserAgent')
client.ssl_config.verify_mode = OpenSSL::SSL::VERIFY_NONE
res = client.get('http://foobar.com/')
p res.header
puts res.content
res = client.post('https://foobar.hoge/login.hoge', {'id'=> 'foo', 'pass' => 'bar'})