search for: httpbadrequest

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

Did you mean: http_bad_request
2009 Sep 05
0
getting an url encoded uri
...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 make this work? Thanks very much, Mihael