Hi all, I dont know how to handle cookie with ruby.
the problem is I want to fetch content from a website which need login
first.
I use the http.post to do the login and seemed works well, but when I went
to the index page, still I got the login first message.
so, any suggestions?
---------------------below is my code---------------------------
require 'net/http'
require 'cgi'
require 'iconv'
Hi all, I dont know how to handle cookie with ruby.
the problem is I want to fetch content from a website which need login
first.
I use the http.post to do the login and seemed works well, but when I went
to the index page, still I got the login first message.
so, any suggestions?
leon du wrote:
> Hi all, I dont know how to handle cookie with ruby.
> the problem is I want to fetch content from a website which need login
> first.
> I use the http.post to do the login and seemed works well, but when I
went
> to the index page, still I got the login first message.
> so, any suggestions?