I’m using: SWI-Prolog version 8.1.24
I want the code to serve a HTML file with an absolute path. But every time it gives me a permission denied error. However, when I try relative paths, things work out fine.
- https://github.com/rrooij/swi_prolog_http_file_bug clone this repo
swipl server.pl, note that the file blabla.html is loading fine
- Quit the server
- Change blabla.html in server.pl to /home/your_user/your_path/to/the/blabla.html
- Notice that you now get a permission denied error, whereas the relative path worked fine