~lioploum/offpunk-devel

#28 : knowing when URL is a folder and not a file

Details
Message ID
<170126311076.7.8715577818706055983.221664989@ploum.eu>
DKIM signature
missing
Download raw message
I’m trying to solve #28
https://todo.sr.ht/~lioploum/offpunk/28


Which is conceptually very simple to understand:

when visiting url host.com/path how could the browser possibly know if 
path is a file or a folder (and the real path is the hidden 
path/index.gmi ).


This is important for relative links : as "target.gmi" could be either 
host.com/target.gmi or host.com/path/target.gmi.


As the problem is very obvious and very common, it looks like it is 
solved everywhere (but in Offpunk). And yet, I don’t understand how they 
do it.


Any help/tips welcome.
-- 
Ploum - Lionel Dricot
Blog: https://www.ploum.net
Livres: https://ploum.net/livres.html
Reply to thread Export thread (mbox)