From: Ehud Rosenberg Date: 2007-11-15T04:17:15+09:00 Subject: Hpricot & mechanize fail to parse page after redirect Hi everyone, My quest with mechanize/Hpricot continues :) Something extremely strange happened today - some simple working code broke down, and i can't figure out why. I am trying to access a piratebay.org search page, which does a redirect to a relative url like this: original link: http://thepiratebay.org/s/?page=0&orderby=3&q=football+manager+2008&searchTitle=on redirects to: /search/football manager 2008/0/3/0 Now, this all worked dandily up till yesterday. the page was redirected, and mechanize even handled the cookie that was sent back from the site. But today, i am getting this strange error: "URI::InvalidURIError: bad URI(is not URI?): /search/football manager 2008/0/3/0" from Hpricot. Mechanize gives a different one, but i'm sure it's inherited from hpricot's problem with getting the page. I have tested this on 2 different machines, and they both break down. Can someone please give it a go and see if they can figure it out? I would be very very thankful :) Thanks, Ehud PS - I am using hpricot 0.6, and the redirected page is parsed correctly when accessed directly -- Posted via http://www.ruby-forum.com/.