[REBOL] URL encoding ?
From: jean:holzammer:faedv-n:bayern at: 24-Oct-2002 10:39
Hi,
I'd like to encode a URL.
URL: http://www.bla.org/cgi-bin/bla.cgi?a=1&b=xyz
I tried:
>> mold to-url "http://www.bla.org/cgi-bin/bla.cgi?a=1&b=xyz"
== "http://www.bla.org/cgi-bin/bla.cgi?a=1&b=xyz"
I need:
http%3A%2F%2Fwww.bla.org%2Fcgi-bin%2Fbla.cgi%3Fa%3D1%26b%3Dxyz
mold to-url will only encode some (=E4=F6=FC...) special characters, but not all
:(
The encoded URL is to be passed as argument for a cgi-script !
http://abc.com/cgi-bin/myscript.cgi?id=7&title=sometext&url=http%3A%2F%2Fwww
.bla.org%2Fcgi-bin%2Fbla.cgi%3Fa%3D1%26b%3Dxyz
Any ideas ??
Jean