[REBOL] Re: ";" semi-colons in urls
From: holger:rebol at: 11-Jan-2001 12:28
On Wed, Jan 10, 2001 at 11:33:13PM -0600, <[norsepower--uswest--net]> wrote:
> Using 'read or 'browse on the following url brings up an error page, but
> dropping the same url in a browser address bar loads the page ok. Is there
> something about this url construction which REBOL can't handle? (I see the
> semi-colons may pose a problem?)
>
> http://ad2.doubleclick.net/jump/sonar.bebits/default;sz=468x60;ord=979190170
The semicolon introduces comments in REBOL, i.e. the scanner considers
;sz=468x60;ord=979190170
to be a comment in your script and does not
include it in the URL. Workarounds:
Either:
to-url "http://ad2.doubleclick.net/jump/sonar.bebits/default;sz=468x60;ord=979190170"
Or:
http://ad2.doubleclick.net/jump/sonar.bebits/default%3Bsz=468x60%3Bord=979190170
%3B is the hex representation of the ASCII code of ";".
--
Holger Kruse
[holger--rebol--com]