[REBOL] Re: Rebol's reading of URLs
From: nitsch-lists:netcologne at: 23-Aug-2003 17:24
Hallvard Ystad wrote:
>Dixit Petr Krenzelok (11.18 23.08.2003):
>
>>I think that what happened has nothing to do with non allowed chars in
>>url parser etc. - imo console took the text right after semicolon as a
>>comment ;-)
>>
>
>Ah, very plausible! Why didn't I think about that...
>But the PS example:
>
>>>http://www.testurl.com/cgi/something.php%3Fcss=something.css%26amp%3Bsomethingelse=17
>>>
>== http://www.testurl.com/cgi/something.php?css=something.css&%3Bsomethingelse=17
>is still annoying. Why isn't %3B turned into a semicolon when the other two entities
transformed? Does console care for me and want me to avoid the confusion I just had?
>
helps
!>> to-string
http://www.testurl.com/cgi/something.php%3Fcss=something.css%26amp%3Bsomethingelse=17
==
{http://www.testurl.com/cgi/something.php?css=something.css&somethingelse=17}
?
also you could use
!>> to-url
http://www.testurl.com/cgi/something.php?css=something.css&somethingelse=17
or #[url!
http://www.testurl.com/cgi/something.php?css=something.css&somethingelse=17
]
to write such urls in code. not perfect, but..
>Thanks for clearing it up, anyway.
>
>Hallvard
>
>Prętera censeo Carthaginem esse delendam
>
-Volker