Toby A Inkster wrote: > > For Shane's benefit: I'm guessing what he's doing is passing URLs to > the URI::URL Perl module to help resolve relative URIs. My workaround > has been to first compare them against this regexp: > > /^([a-z][a-z0-9\+\.\-]*)\:/i > > If the URI matches that regexp, then it's already absolute, so you > don't need to pass it through URI::URL. Fun! Actually, what is happening in my implementation is that I am using URI->new_abs to ensure that all URIs are absolute URIs (and create absolute URIs from relative ones). I worked around this by using the URI classes as_string method instead of canonical method - works fine. It just surprised me that the stuff was treated case-sensitively when the RFC said it should not me. And, of course, I had forgotten the earlier discussion. Thanks for reminding me, Toby! -- Shane P. McCarron Phone: +1 763 786-8160 x120 Managing Director Fax: +1 763 786-8180 ApTest Minnesota Inet: shane@aptest.comReceived on Thursday, 18 September 2008 21:54:31 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 18 September 2008 21:54:34 GMT