[REBOL] Re: Rebol's reading of URLs
From: brian:hawley at: 23-Aug-2003 14:19
At 11:05 AM 8/23/03 +0200, Hallvard Ystad wrote:
>Hello list.
>
>This irritates me:
> >>
> http://www.testurl.com/cgi/something.php?css=something.css&somethingelse=17
>== http://www.testurl.com/cgi/something.php?css=something.css&
>
>Seems rebol's url scanner stops at semicolons. I tried url-encoding the
>url, but with no more success:
>
> >>
> http://www.testurl.com/cgi/something.php%3Fcss=something.css%26amp;somethingelse=17
>== http://www.testurl.com/cgi/something.php?css=something.css&
That URL is HTML-encoded and can't be used as a URL as it is,
so why not do this:
http://www.testurl.com/cgi/something.php?css=something.css&somethingelse=17
or just treat it as a string. Semi-colons in a URL start the
cookie section (I think). Is this URL going to be displayed
in the content section of an HTML page or in an href tag?
If content, treat it as a string; if in a tag, change the
& back to & so that it will work.
Brian