Hi!
I was trying to do an http request using gem httpclient.
First at all i have to login with user and pass, if the user and pass is
correct the server send me a cookie that i have to use to other request
My code is:

c = HTTPClient.new
c.debug_dev = STDOUT
c.set_cookie_store('cookie.dat')
request = {"user"=>"user","pass"=>"pass"}

uri = "http://localhost/index.php"
res = c.post(uri,request,:follow_redirect => true)
puts "SALIDA: \n\n"+res.content
c.save_cookie_store

If i look  the console i can see that all is correct but i can't see
enything when i puts res.conten or res.body. Why?
And if i have to do more request's how do i pass the cookie to the
server?
Thank's

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