Hi,

i have to open an uri with open-uri but URI is raising me an error that
an URL is an invalid uri:

>> p URI.split("http://xpto.com/index.asp?action=showproduct&id={D3E21D33-6DFF-4355-9324-AE1395CEB247}")
URI::InvalidURIError: bad URI(is not URI?):
http://xpto.com/index.asp?action=showproduct&id={D3E21D33-6DFF-4355-9324-AE1395CEB247}
  from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/uri/common.rb:436:in
`split'
  from (irb):8
  from :0
>> 

That's a strange ID but valid. I even checked the RFC 2396 and {} is not
a reserved character.

Best regards,

VP
-- 
Posted via http://www.ruby-forum.com/.