[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: url-escaping a string in a shell script.



On Sat, Jul 21, 2001 at 03:43:38PM +0200, Martin F. Krafft wrote:
> in fact, this doesn't seem to work at all:
> 
> fishbowl:~> echo '$1$19496519$xnqy/01WTA6pfhLBqZT13.' | \
>   perl -MURI::Escape -ne 'chomp; print uri_escape($_), "\n"'
> $1$19496519$xnqy/01WTA6pfhLBqZT13.
> 
> what am i doing wrong?

You read the wrong rfc, the above characters are all allowed in http.
Try it again, using spaces, '%', '#' and some control characters.
Those will be escaped.

Cheers,


Joost



Reply to: