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

[REBOL] Re: Download a whole website

From: oliva:david:seznam:cz at: 4-Aug-2002 16:11

Hello G., Saturday, August 3, 2002, 11:50:03 PM, you wrote:
>> 2. >> Way how to encode file names of dynamic documents as: >>
GSJ> I am unsure what you are asking. Do you mean how to create a static file GSJ> name for what is a dynamically created web page? I would be tempted to take GSJ> a shortcut, unless I really needed to preserve the embeded data in the url. GSJ> Something like: GSJ> my-url: GSJ> split-url: split-path my-url GSJ> new-file-name: to-file join checksum split-url/2 ".html" GSJ> ;=====yielding %11808560.html first I thought storing the files in more readable form as it's in the Rebol/view structure of public/ dir, but I quite like your (crypted) version as well, at least there are no problems with port ids (see my "path-thru" email) and not allowed chars at paths... in both cases I will have to make some testion of content-type of the dynamic created document to add correct extension (not all document are simple html:-) --oldes