ratarmount icon indicating copy to clipboard operation
ratarmount copied to clipboard

HTTP authentication support

Open WizzardSK opened this issue 8 months ago • 4 comments

Why it does not work with archive.org files? For example, I try to mount https://archive.org/download/tosec-main/Atari/ST/Games/%5BST%5D/Atari%20ST%20-%20Games%20-%20%5BST%5D%20%28TOSEC-v2025-01-15%29.zip and it is giving me an "[Error]" message.

ratarmount https://archive.org/download/tosec-main/Atari/ST/Games/%5BST%5D/Atari%20ST%20-%20Games%20-%20%5BST%5D%20%28TOSEC-v2025-01-15%29.zip myfolder/
[Error] https://archive.org/download/tosec-main/Atari/ST/Games/%5BST%5D/Atari%20ST%20-%20Games%20-%20%5BST%5D%20%28TOSEC-v2025-01-15%29.zip

WizzardSK avatar Jun 13 '25 12:06 WizzardSK

Even without ratarmount, your link gives me:

Item not available The item is not available due to issues with the item's content.

mxmlnkn avatar Jun 13 '25 12:06 mxmlnkn

That is weird, I am able to download it in the browser. Maybe this format is better?

https://archive.org/download/tosec-main/Atari/ST/Games/[ST]/Atari ST - Games - [ST] (TOSEC-v2025-01-15).zip

Anyway, I am not able to mount any archive link. Maybe archive.org issue?

WizzardSK avatar Jun 13 '25 12:06 WizzardSK

Now, I am getting: 401 Authorization Required.

There seems to be some way to specify the user and password to the HTTP backend, but even then, there is the low-level authentication, which almost no website users anymore, and cookie-based authentication, which would be another matter. I'd have to debug and test this.

mxmlnkn avatar Jun 14 '25 07:06 mxmlnkn

You are right, it looks like it does not work for anonymous users. I always go there when logged in, so I did not notice that.

Some archive items are public and can be mounted. The problem is just those that need authentication.

WizzardSK avatar Jun 14 '25 17:06 WizzardSK