Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: URL-Query

From: hallvard:ystad-oops:as:no at: 26-Feb-2005 13:16

Dixit Anton Rolls (05.40 26.02.2005):
>I don't see the need to save to and read from a file. >You can do it all in memory [...]
Of course. But make sure you don't serve to the rebol scanner a string that will be scanned before the URL is constructed. This is OK:
>> url:^DJI&a=1&b=26&c=2004&d=1&e==
>> url
===^DJI&a=1&b=26&c=2004&d=1&e== 25&f=2005&g=d&ignore=.csv But this is not:
>> url: to-url "^DJI&a=1&b=26&c=2004&d=1&e=25&f=2005&g=d&ignore=.csv" >> url
=== The reason is that rebol has found "^D" to be %04 instead of #"^" alone to be %5E. You need to replace #"^" before the rebol scanner gets a chance to find it. Maybe this is worth a mention to RT feedback? Maybe 'read should be able to fix #"^" on its own? HY