Hi man, <br><br>Thank you very much for your good work.<br>I think there may be a bug in Mechanize 0.6.3. Cookie:cookies (cookie.rb:L83)<br> @jar[domain].each_key do |name|<br>=> if url.path =~ /^#{@jar[domain][name].path}/
<br> if @jar[domain][name].expires.nil?<br> cookies << @jar[domain][name]<br> elsif Time.now < @jar[domain][name].expires<br> cookies << @jar[domain][name]
<br> end<br> end<br> end<br><br>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.
<br><br>Sincerely,<br>Harish Tan<br><br><br>