From: "ara.t.howard" Date: 2008-08-14T13:33:36+09:00 Subject: [OT] Re: Are square brackets not allowed in a URI? On Aug 13, 2008, at 10:12 PM, Just Another Victim of the Ambient Morality wrote: > I could swear that this URL works: > > > http://www.teamliquid.net/tlpd/players/189_YellOw[ArnC] > > > ...but parsing this with URI throws an exception claiming that > this is > invalid. > I don't know exactly what URI's are but Mechanize is using it to > parse > URLs and this appears to be a valid URL so it looks like either > Mechanize's > bug is in using Ruby's URI module or the URI module in not accepting > valid > URLs. Either that or there's something I'm totally not > understanding (like > my browser lying to me or something). Can someone tell me what's > going on? > Thank you! > > > > http://www.faqs.org/rfcs/rfc2396.html " Other characters are excluded because gateways and other transport agents are known to sometimes modify such characters, or they are used as delimiters. unwise = "{" | "}" | "|" | "\" | "^" | "[" | "]" | "`" Data corresponding to excluded characters must be escaped in order to be properly represented within a URI. " a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama