E
Ehud Rosenberg
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
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