mechanize version 0.6.6 has been released! http://mechanize.rubyforge.org/ The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, can follow links, and submit forms. Form fields can be populated and submitted. Mechanize also keeps track of the sites that you have visited as a history. Changes: = Mechanize CHANGELOG == 0.6.6 * Removing hpricot overrides * Fixed a bug where alt text can be nil. Thanks Yannick! * Unparseable expiration dates in cookies are now treated as session cookies * Caching connections * Requests now default to keep alive * [#9434] Fixed bug where html entities weren''t decoded * [#9150] Updated mechanize history to deal with redirects http://mechanize.rubyforge.org/ -- Aaron Patterson http://tenderlovemaking.com/
To all those that have contributed to this software so far...thanks for writing good and useful code. Mike B. Quoting Aaron Patterson <aaron at tenderlovemaking.com>:> mechanize version 0.6.6 has been released! > > http://mechanize.rubyforge.org/ > > The Mechanize library is used for automating interaction with websites. > Mechanize automatically stores and sends cookies, follows redirects, > can follow links, and submit forms. Form fields can be populated and > submitted. Mechanize also keeps track of the sites that you have visited as > a history. > > Changes: > > = Mechanize CHANGELOG > > == 0.6.6 > > * Removing hpricot overrides > * Fixed a bug where alt text can be nil. Thanks Yannick! > * Unparseable expiration dates in cookies are now treated as session cookies > * Caching connections > * Requests now default to keep alive > * [#9434] Fixed bug where html entities weren''t decoded > * [#9150] Updated mechanize history to deal with redirects > > http://mechanize.rubyforge.org/ > > -- > Aaron Patterson > http://tenderlovemaking.com/ > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users >---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
Thanks ! I confirm : bug #9434 is solved. I can continue my developpement. Bests regards, Bruno Duy? Le dimanche 25 mars 2007 04:25, Aaron Patterson a ?crit?:> mechanize version 0.6.6 has been released! > > http://mechanize.rubyforge.org/ > > The Mechanize library is used for automating interaction with websites. > Mechanize automatically stores and sends cookies, follows redirects, > can follow links, and submit forms. Form fields can be populated and > submitted. Mechanize also keeps track of the sites that you have visited > as a history. > > Changes: > > = Mechanize CHANGELOG > > == 0.6.6 > > * Removing hpricot overrides > * Fixed a bug where alt text can be nil. Thanks Yannick! > * Unparseable expiration dates in cookies are now treated as session > cookies * Caching connections > * Requests now default to keep alive > * [#9434] Fixed bug where html entities weren''t decoded > * [#9150] Updated mechanize history to deal with redirects > > http://mechanize.rubyforge.org/
On Mon, Mar 26, 2007 at 02:41:42PM +0100, bruno wrote:> Thanks ! > > I confirm : bug #9434 is solved. I can continue my developpement.Great! I''m glad its working! -- Aaron Patterson http://tenderlovemaking.com/
Zach Baker
2007-Mar-27 20:24 UTC
[Mechanize-users] Bug: Mechanize 0.6.6 has problems handling 302s
I''m trying to get a link that results in a 302 redirect, and although Mechanize 0.6.5 handled it fine, I get an EOFError deep inside Net::Protocol when I try it with 0.6.6. Here''s an example with some URL I found on Google. This script: require ''rubygems'' require ''mechanize'' a = WWW::Mechanize.new a.get(''http://www.brunway.com/adcentrix/clickthru.cfm?id=25'') Results in this error: EOFError: end of file reached from /usr/lib/ruby/1.8/net/protocol.rb:133:in `sysread'' from /usr/lib/ruby/1.8/net/protocol.rb:133:in `rbuf_fill'' from /usr/lib/ruby/1.8/timeout.rb:56:in `timeout'' from /usr/lib/ruby/1.8/timeout.rb:76:in `timeout'' from /usr/lib/ruby/1.8/net/protocol.rb:132:in `rbuf_fill'' from /usr/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'' from /usr/lib/ruby/1.8/net/protocol.rb:126:in `readline'' from /usr/lib/ruby/1.8/net/http.rb:2017:in `read_status_line'' from /usr/lib/ruby/1.8/net/http.rb:2006:in `read_new'' from /usr/lib/ruby/1.8/net/http.rb:1047:in `request'' from /usr/lib/ruby/gems/1.8/gems/mechanize-0.6.6/lib/mechanize.rb:408:in `fetch_page'' from /usr/lib/ruby/gems/1.8/gems/mechanize-0.6.6/lib/mechanize.rb:477:in `fetch_page'' from /usr/lib/ruby/1.8/net/http.rb:1050:in `request'' from /usr/lib/ruby/1.8/net/http.rb:2133:in `reading_body'' from /usr/lib/ruby/1.8/net/http.rb:1049:in `request'' from /usr/lib/ruby/1.8/net/http.rb:1034:in `request'' from /usr/lib/ruby/1.8/net/http.rb:543:in `start'' from /usr/lib/ruby/1.8/net/http.rb:1032:in `request'' from /usr/lib/ruby/gems/1.8/gems/mechanize-0.6.6/lib/mechanize.rb:408:in `fetch_page'' from /usr/lib/ruby/gems/1.8/gems/mechanize-0.6.6/lib/mechanize.rb:166:in `get'' Unfortunately, my Ruby Net module understanding is not strong enough to figure out what''s going on here. Anyone know what''s up? -- Zach.
Aaron Patterson
2007-Mar-27 22:24 UTC
[Mechanize-users] Bug: Mechanize 0.6.6 has problems handling 302s
Hi Zach! On Tue, Mar 27, 2007 at 01:24:50PM -0700, Zach Baker wrote:> I''m trying to get a link that results in a 302 redirect, and although > Mechanize 0.6.5 handled it fine, I get an EOFError deep inside Net::Protocol > when I try it with 0.6.6. Here''s an example with some URL I found on Google. > > This script: > > require ''rubygems'' > require ''mechanize'' > a = WWW::Mechanize.new > a.get(''http://www.brunway.com/adcentrix/clickthru.cfm?id=25'')Looks like the problem isn''t with 302''s. It looks like the server doesn''t like keep alive requests, and mechanize is not handling it properly. It tries to read from the socket even though there is nothing left to read. I''ve added a fix in SVN, and I''ll release this tonight. -- Aaron Patterson http://tenderlovemaking.com/