
Signature
John W. Kennedy
"The blind rulers of Logres
Nourished the land on a fallacy of rational virtue."
-- Charles Williams. "Taliessin through Logres: Prelude"
>> Hi,
>>
[quoted text clipped - 4 lines]
>> classes to get the URL to look like so http://www.google.com/index.html
>> then my problem would be solved.
Just in case you didn't know, sometimes the contents of webpages come
from multiple files, and sometimes the contents of webpages don't come from
a file at all.
> Not in general. If the server chooses to regard "/" as an adequate
> resource name -- and most do --, there is nothing the client can do about
> it.
Possible alternative designs include using heuristics (like what FireFox
does when you try to save a webpage), or somehow establishing a 1-to-1
correspondance between URLs and legal filenames, perhaps via some sort of
encoding process. For example, you might use base64 encoding so that the URL
"http://www.google.com/" is encoded to the filename
"aHR0cDovL3d3dy5nb29nbGUuY29tLw==.html".
- Oliver