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

2001-07-21 Thread Martin F. Krafft
also sprach Joost Kooij (on Sat, 21 Jul 2001 05:27:49PM +0200): > Of course, if you want to fake the behaviour of webbrowsers, avoid all > standards like the plague. Certain browsers will escape all characters > when sending a request to the server. Why do you think that .asp sites > regularly ha

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

2001-07-21 Thread Joost Kooij
On Sat, Jul 21, 2001 at 05:07:23PM +0200, Martin F. Krafft wrote: > also sprach Joost Kooij (on Sat, 21 Jul 2001 03:53:58PM +0200): > > 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 escap

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

2001-07-21 Thread Martin F. Krafft
also sprach Joost Kooij (on Sat, 21 Jul 2001 03:53:58PM +0200): > 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. The restricted set of characters consists of digĀ­ its,

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

2001-07-21 Thread Joost Kooij
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 wron

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

2001-07-21 Thread Joost Kooij
On Sat, Jul 21, 2001 at 03:11:06PM +0200, Martin F. Krafft wrote: > also sprach Joost Kooij (on Sat, 21 Jul 2001 01:56:26PM +0200): > > perl -MURI::Escape -ne 'chomp; print uri_escape($_), "\n"' > > > > A little scriptlet to do the same: > > > > #!/usr/bin/perl -w > > use URI::Escape; > >

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

2001-07-21 Thread Martin F. Krafft
also sprach Joost Kooij (on Sat, 21 Jul 2001 01:56:26PM +0200): > perl -MURI::Escape -ne 'chomp; print uri_escape($_), "\n"' 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$19496

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

2001-07-21 Thread Martin F. Krafft
also sprach Joost Kooij (on Sat, 21 Jul 2001 01:56:26PM +0200): > perl -MURI::Escape -ne 'chomp; print uri_escape($_), "\n"' > > A little scriptlet to do the same: > > #!/usr/bin/perl -w > use URI::Escape; > chomp, print uri_escape($_), "\n" while (<>); almost, except that an input of "$

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

2001-07-21 Thread Joost Kooij
On Sat, Jul 21, 2001 at 01:37:26PM +0200, Martin F. Krafft wrote: > hi, > assuming that i have a string of the form "123%%%blabla*($(" available > in the shell script, how can i convert that into an escaped version > for use with the HTTP protocol? i am not a perl wizard, or else i > wouldn't ask.