See if you can get something like this to work:

require 'net/http'
require 'net/https'

http = Net::HTTP.new('profil.wp.pl', 443)  #(host, port)
http.use_ssl = true
path = '/login.html'

# POST request -> logging in
data = 
'serwis=wp.pl&url=profil.html&tryLogin=1&countTest=1&logowaniessl=1&login_username=blah&login_password=blah'

headers = {
  'Cookie' => cookie,
  'Referer' => 'http://profil.wp.pl/login.html',
  'Content-Type' => 'application/x-www-form-urlencoded'
}

resp, data = http.post(path, data, headers)

http://snippets.dzone.com/posts/show/788

-- 
Posted via http://www.ruby-forum.com/.