Hi man,
Thank you very much for your good work.
I think there may be a bug in Mechanize 0.6.3. Cookie:cookies (cookie.rb:L83
)
@jar[domain].each_key do |name|
=> if url.path =~ /^#{@jar[domain][name].path}/
if @jar[domain][name].expires.nil?
cookies << @jar[domain][name]
elsif Time.now < @jar[domain][name].expires
cookies << @jar[domain][name]
end
end
end
If I redirect from /login.cgi to / (finish login, the website return some
cookies and tell me to redirect to its main page), the url.path will not
contain the string in @jar[domain][name].path, which is /login.cgi. So I
will never get the cookies belong to the domain and never successful log in.
Sincerely,
Harish Tan
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/mechanize-users/attachments/20061124/4dadfb30/attachment-0001.html