Re: Bug Report

Gisle Aas (gisle@activestate.com)
10 Apr 2001 10:06:53 -0700


Bjoern Hoehrmann <derhoermi@gmx.net> writes:

> * Laurent Simonneau wrote:
> >Why the character '|' is converted to '%7C' in URLs ?
> 
> RFC 2396 (http://www.ietf.org/rfc/rfc2396.txt) defines it as an unwise
> character, they must be escaped in URIs.
> 
> >Exemple : 
> >libwww-perl send :
> >
> >GET http://www.lycos.fr/cgi-bin/nph-bounce?LIA14%7C/service/sms/
> >HTTP/1.0
> >
> >And the server reply a 404 not found error.
> 
> That's a bug, maybe Lycos people should get better software, libwww-perl
> behaves correctly.

I agree.  LWP should escape '|' by default.  If you want to force '|'
to be a legal URI char you might add these two lines to the top of
your script:

   use URI;
   $URI::uric .= "|";

Regards,
Gisle