PDA

View Full Version : Difference between file:// and file:///


armsys
01-04-2009, 10:21 PM
What's the difference between the 2 URLs: file:// and file:/// ?
Thanks.

kinook
01-05-2009, 04:20 PM
File URLs follow the form

file://host/path

If host is omitted (file:///path), it is taken to be localhost.

So technically, file://path is not actually a valid file URL, while file:///path is (although Windows typically accepts both).

http://www.cs.tut.fi/~jkorpela/fileurl.html

armsys
01-05-2009, 04:40 PM
Kinook, thanks a lot for your valuable information. You may explain why some URL with // causes errors and /// generally works fine in Info Item text.