httpdirfs icon indicating copy to clipboard operation
httpdirfs copied to clipboard

Index.html with external links is not working

Open trixprod opened this issue 1 year ago • 5 comments

Hello, i'm not sure if it's a bug or a new request so tell me.

In httpdirfs we can :

  • Mount a directory with local links ( relative to current website )
  • Mount a single file with a http link

But i would like to mount a list of inside an index.html, it appears that's is not possible. Httpdirfs doesn't list at all any external links.

Steps to reproduce :

mkdir server
echo '<a href="http://external-link/file.iso">file.iso</a>' > server/index.html
python3 -m http.server --directory server 12345

Result :

httpdirfs -d http://localhost:12345 directory

LinkTable_print: --------------------------------------------
LinkTable_print:  LinkTable 0x563726575170 for http://localhost:12345
LinkTable_print: --------------------------------------------
LinkTable_print: 0 H 0  http://localhost:12345
LinkTable_print: --------------------------------------------
LinkTable_print:  Invalid link count: 0
LinkTable_print: --------------------------------------------

0 link created.

trixprod avatar Mar 29 '24 21:03 trixprod

This was never intended to work. This software only checks for link within the same server.

fangfufu avatar Apr 01 '24 08:04 fangfufu

Hello, ok well, i will setup a reverse proxy as a workaround. Thanks

trixprod avatar Apr 01 '24 09:04 trixprod

Anyways, in principle there shouldn't be a problem with what you requested. I will keep this open as a feature enhancement.

fangfufu avatar Apr 21 '24 00:04 fangfufu

Hello @fangfufu, it would be a good feature. Are you still planning to implement it on a near future ?

Have a good day.

trixprod avatar Sep 21 '24 09:09 trixprod

Yes, but I don't plan to work on it any time soon.

fangfufu avatar Sep 21 '24 19:09 fangfufu