search for: u010ditnice

Displaying 1 result from an estimated 1 matches for "u010ditnice".

2009 Sep 05
0
getting an url encoded uri
Hello, I am assembling my first cool algorithms with mechanize and I came across this weird situation. I am trying to get this uri "http://www.relax.si/kratke po?itnice.aspx" like this (with url encoded uri): agent.get("http://relax.si/kratke%20po%u010Ditnice.aspx") and in return I get: WWW::Mechanize::ResponseCodeError: 400 => Net::HTTPBadRequest from /Library/Ruby/Gems/1.8/gems/mechanize-0.9.3/lib/www/mechanize.rb: 238:in `get'' The same url encoded uri works ok in browser. How does mechanize handle url encoded uri? How can I mak...