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

[REBOL] Re: URL-Query

From: antonr:lexicon at: 26-Feb-2005 15:40

I don't see the need to save to and read from a file. You can do it all in memory, eg:
>> url:
http://ichart.yahoo.com/table.csv?s=^DJI&a=1&b=26&c=2004&d=1&e=25&f=2005&g=d &ignore=.csv == http://ichart.yahoo.com/table.csv?s=^DJI&a=1&b=26&c=2004&d=1&e=25&f=2005&g=d &ignore=.csv
>> url2: copy url
== http://ichart.yahoo.com/table.csv?s=^DJI&a=1&b=26&c=2004&d=1&e=25&f=2005&g=d &ignore=.csv
>> replace/all url2 "^^" "%5E"
== http://ichart.yahoo.com/table.csv?s=%5EDJI&a=1&b=26&c=2004&d=1&e=25&f=2005&g =d&ignore=.csv
>> read url2
== {Date,Open,High,Low,Close,Volume,Adj. Close* 25-Feb-05,10748.42,10871.53,10698.32,10841.60,15236800,10841.60 24-Feb-05,10672.24,... Anton.